-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up 1 EVM fails #457
Comments
The version you linked (6e1c282) is afflicted by an issue when trying to deploy contracts with factory dependencies bigger than a certain amount, so the error you saw is expected. If you didn't What error are you getting with the latest version (ab00f2e) that's making it "impossible to run the simulation"? Please note we have #418 depicting gas estimation issues, and this can lead to a variety of errors during simulation and broadcasting, which could be affecting you as well. |
The old version works flawlessly without skipping the simulation.
|
Alright, I see. |
I did set
|
You should definitely see more output than that with |
It worked using your command, so here it is with more trace data:
So the error comes from the fact that my |
Awesome, glad to know you got the debug logs now. Unfortuantely it seems like this specific run you are missing the |
I tried with another script:
|
Hmm that's weird, but I think this is the same as (or related to) #466 |
Here is an example repository: |
Thank you for the example. It is possible you were originally (when you first opened the issue) affected by a bug which was fixed in #476, so perhaps you could retry with a more up to date version of foundry-zksync and see if that resolves your original issue |
Hey @L0GYKAL any update here? Are you still encountering this issue? |
Yes, I still have the same issue but I manage to broadcast the transactions from the time we spoke |
So you tried with the latest version of foundry-zksync and are still encountering issues in the zksync-challenges repo running the following command? Could you let me know if you are using a custom RPC or just a public one like |
When I add -vvvv to the command, I can see the following red warning:
But there are no problems with the deployment and transactions are successfully broadcasted. |
Understandable, that's actually expected, as foundry does some heuristic to determine the necessary gas to execute the broadcastable transactions, and in that process there will be failures due to low gas, but the tool should still report the status as succesfull as you mentioned. |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.0.2 (ab00f2e 2024-07-04T00:20:25.236230510Z)
What command(s) is the bug in?
forge script
Operating System
Linux
Describe the bug
With this exact version of forge, it is impossible to run the simulation and therefore deploy a contract on the Sepolia ZKsync testnet. A colleague managed to make it work with the forge version 0.0.2 (6e1c282 2024-07-03T00:21:36.167139657Z).
And if I skip the simulation it it fails to estimate the gas: "Failed to estimate gas for tx:" and gives me this context: "Context: - (code: 3, message: execution reverted: The code hash is not known, data: Some(String("...")))"
The text was updated successfully, but these errors were encountered: