Skip to content
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

vm.nonce is not updated in contract calls. #70

Closed
ivan-onchain opened this issue Sep 3, 2024 · 4 comments
Closed

vm.nonce is not updated in contract calls. #70

ivan-onchain opened this issue Sep 3, 2024 · 4 comments

Comments

@ivan-onchain
Copy link

Based on this issue in the foundry repo looks like the nonce of an address is only updated if that address is used to deploy a contract but not for calling functions

foundry-rs/foundry#8584

Therefore challenges like ThePuppet can't be finished as the player doesn't deploy any contract but the required nonce has to be one.

@matiasanaya
Copy link

See also foundry-rs/foundry#8811

@tinchoabbate
Copy link
Collaborator

Thanks for reporting. Yes I'm aware of this behavior, it's being discussed here: #57. I don't seem to be able to do anything about it from my side, we've gotta wait for the Foundry folks to fix.

@CanonicalJP
Copy link

CanonicalJP commented Oct 12, 2024

The workaround proposed by Foundry is to use the --isolated option to make each tx be executed in a separate EVM context. It looks like that option was not working properly either, solved in foundry-rs/foundry#8878

On the other hand, I created #77 so that the option is included in the Usage section of the README

@tinchoabbate
Copy link
Collaborator

will include in the next minor release the change in the README. Thanks everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants