Allow getContract
to use the "Config" object produced by wagmi/cli for contract address
#2003
Unanswered
masha256
asked this question in
Idea / Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
wagmi config has the ability to specify addresses for contracts, including per-chain addresses. It would be great if viem
getContract
could accept the generated "Config" object, which includes the abi, from wagmi - including the per-chain addresses, where it automatically uses the contract address that matches the chain configured in the viem client.And of course, when the client switches chains, it should switch to the contract address for that chain.
Beta Was this translation helpful? Give feedback.
All reactions