Skip to content

How to deploy a smart contract on multiple networks and keeping the contract address same in all the networks? #5300

Discussion options

You must be logged in to vote

Hi @debo024! The address of an Ethereum contract is deterministically computed, from the sender and the nonce. I assume we are talking about Ethereum-compatible networks here.

It is possible but not super straightforward to make the contract addresses the same in every deployment. I found this article helpful as far as workarounds to ensure that the contract address is the same in every network (be sure to read to the end for some sample scripts!): https://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed

Your sender address will be the same in every EVM network (i.e. your seed phrase will deterministically lead to the same addresses), but the no…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fainashalts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants