Is it possible to deploy contracts to a specific address?

I wish to deploy my contract to a specific address in ropsten or rinkeby test environment.

I am using ‘truffle migrate --network ropsten’ command. Do I need to add any suffix so that it gets deployed to a specific contract address ?

This will help me in live testing.

Thanks in advance


1 Like

Hi @ashishk74,

Welcome the the community forum :wave:

We can’t specify an address to deploy a contract to.

We can determine what the address will be for a contract that we create. So we could use CREATE2 to deploy to a precomputed address.

Another option would be to deploy an upgradeable contract, so the proxy address will be the same.

What option to use really depends on your use case.