ethcontract-rs icon indicating copy to clipboard operation
ethcontract-rs copied to clipboard

Support networks with same chain id but different names

Open taminomara opened this issue 3 years ago • 2 comments

Hardhat deploy supports having different networks with the same chain id. For example, you can have rinkeby and rinkeby-testing. Both are rinkeby, but contract addresses and ABIs can be different.

It may be beneficial to support this in ethcontract-rs.

taminomara avatar Jun 23 '21 12:06 taminomara

Also, in general, its probably safer to differentiate on chain ID instead of network ID.

Do you know if it uses the chain ID as the differentiating factor, or something else?

nlordell avatar Jun 23 '21 12:06 nlordell

Oh yeah, it uses chain id. Sorry, my bad. I'll update the issue.

taminomara avatar Jun 23 '21 13:06 taminomara