Replies: 1 comment 1 reply
-
const networkId = provider.network.chainId;
let deployedNetwork = MyABI.networks[networkId];
const contract = useContract({
addressOrName: deployedNetwork.address
}) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm looking for the best to set dynamically the addressOrName of my deployed contract in a useContract awaiting that :
Thx
Beta Was this translation helpful? Give feedback.
All reactions