Skip to content

ZK deterministic address #30

Closed Answered by dutterbutter
johnpaulcas asked this question in Deployments
Discussion options

You must be logged in to vote

Hey @johnpaulcas 👋 Yes there are differences. You can review this part of the docs that describes how zkSync employs a unique account model and method for generating contract addresses. Instead of just relying on the sender's address and nonce like Ethereum, BSC, or Polygon, zkSync splits the nonce into two parts: the deployment nonce and the transaction nonce. This is in order to facilitate support for account abstraction.

To have a deterministic address, you should use the create2 method from ContractDeployer. It is available for EOAs as well.

Replies: 5 comments 2 replies

Comment options

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

@dutterbutter
Comment options

Answer selected by uF4No

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployment Questions for deployment
7 participants