Skip to content

[Dev Tools] hardhat deploy-zksync:contract does not seem to be deterministic across wallets #768

Discussion options

You must be logged in to vote

@coffeexcoin ZKsync create2 implementation is different then EVM. Specifically, CREATE2 implementation includes the deployer's address (msg.sender) in the address derivation. This means that deploying the same contract with different origins will result in distinct addresses, even if the calldata, salt, and bytecode hash are identical. You can view the implementation here

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@coffeexcoin
Comment options

@dutterbutter
Comment options

Answer selected by dutterbutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devtools Questions related to zkSync Tooling
2 participants