Michael J. Cohen

Results 7 comments of Michael J. Cohen

getting this now ``` MetaMask: Content script lost connection to "MetaMask Background Multiplex". undefined contentscript.js:1:117588 MetaMask: Muxed traffic for channel "metamask-provider" failed. undefined contentscript.js:1:117501 MetaMask: Content script lost connection to...

Hey @HJScanlan - I'd recommend asking in the synthetix discord

for a factory pattern, it's not obvious how to generate contract hooks where the address is dynamically passed from a frontend component

I just mean dynamically passed. the current hook examples hardcode the contract address.

``` export const useCoffeeFactoryContract = generateContractHook({ abi: CoffeeFactoryABI, // deploy different kinds of coffee from this contract [baseSepolia.id]: { chain: baseSepolia, address: '0xabcbcbcb...', }, }); ``` code below does not...

hey - i think me calling it "dynamically passed" is tripping the conversation up. i'm really just asking about any factory pattern. like, if i was building uniswap, how would...

i would probably dispute the "edge case" characterization. it would be necessary for many AMMs or NFT marketplaces. I figured out how to do it, but a basic hook standard...