[Dev Tools] forge script
fails because of mismatched nonces
#931
-
Team or ProjectPoolTogether ZK chainEra EnvironmentTestnet Select the Dev Tool you are usingFoundry Provide the version of the tool (if applicable)foundryup-zksync 0.3.3, forge-zksync 0.0.8 Provide a brief description of the functionality you're trying to implement and the issue you are running into.I'm trying to deploy the standard PoolTogether testnet to a zkSync node using our forge script, but it seems to be failing due to a nonce issue. Repo Link (Optional)https://github.com/GenerationSoftware/pt-v5-testnet/tree/zksync Additional DetailsForge script fails on nonceI'm trying to deploy our PoolTogether testnet configuration to a zkSync node. However, I've been unable to determine why our forge deploy script fails with the zksync tooling. The script seems to skip a few nonces halfway through. The failure message is:
I've wondered if it's because we have some factory contracts, so I enabled I've wondered if it's because of contract size limits, but from what I've gathered we're still far under the limit. I would love some help with this! Reproduction
You should see it successfully run the first 10 transactions, then die on the 11th with the message:
Now when you look at the
The nonces jump from 0xa to 0xd; what happened to 0xb and 0xc? Seems like a clue to me, though I'm not sure how to investigate further. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hey @asselstine 👋 Thank you for posting. And a BIG thank you for the well structured post. 🙏 Let me investigate this! |
Beta Was this translation helpful? Give feedback.
-
Excellent! Thanks @dutterbutter ill give the script another try when I get a chance |
Beta Was this translation helpful? Give feedback.
We've identified the issue within
forge script
and are actively working on resolving for the next release offoundry-zksync
. Should be included in0.0.9
. I really appreciate posting the issue so we can make it better and the patience 🙏