You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, love the package its definitely streamlined my workflow.
I was wondering what you thought of multichain support, would it be possible to parse the wagmi config to fetch the chains that are being used, and allow an address to be set for each chain.
I imagine the api would look something like this:
const abiMap = processTypechainAbis(typechain, {
ContractName: {
// defaultAddress: "0x1234...", // Keep default address If only using one chain, prevent breaking changes
chains: {
[mainnet]: "0x01234...",
[sepolia]: "0x11234...",
},
},
});
Then the useContract hook would fetch the correct contract based on the chain that is currently connected, instead of passing in the chain specific address each time it is called.
Let me know what you think
The text was updated successfully, but these errors were encountered:
Hey, love the package its definitely streamlined my workflow.
I was wondering what you thought of multichain support, would it be possible to parse the wagmi config to fetch the chains that are being used, and allow an address to be set for each chain.
I imagine the api would look something like this:
Then the
useContract
hook would fetch the correct contract based on the chain that is currently connected, instead of passing in the chain specific address each time it is called.Let me know what you think
The text was updated successfully, but these errors were encountered: