Skip to content

[ZK Stack] - Zkstack ecosystem deployment stability issue #1007

Answered by ly0va
mikiw asked this question in ZK Stack
Discussion options

You must be logged in to vote

Hello @mikiw! The variable number of deployer transactions is explained by the fact that the deployment is performed via CREATE2, which makes it easy to check if a certain contract has already been deployed by the deployer, and if so, does not redeploy it, and thus does not create separate transaction on chain.

The "nonce too low" error may stem from the fact that you might have re-initiated the zkstack ecosystem init process before waiting for all the transactions from the previous invocation to be settled on chain. This would have resulted in a race condition, where:

  • some transactions from the old invocation still in mempool but not executed
  • which makes the provider return a low nonce …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ly0va
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ZK Stack
Labels
deployment Questions for deployment
2 participants