Nonce does not increment with transactions #57
Replies: 6 comments 12 replies
-
Hi @Schereo, thanks for reporting! That's strange. I haven't run into this. Which forge version are you using? |
Beta Was this translation helpful? Give feedback.
-
same with |
Beta Was this translation helpful? Give feedback.
-
@tinchoabbate The same problem happens in NaiveReceiverChallenge. After passing the challenge, I output the log and the result of vm.getNonce(player) is zero. Is it a problem with my forge version?
|
Beta Was this translation helpful? Give feedback.
-
Thanks all for reporting! Not sure what's going on. I tested it with the forge version specified in the devcontainer and worked. Not sure if this is a bug in newer versions of forge or sth I'm doing wrong to test for this condition. I'll have to debug deeper. |
Beta Was this translation helpful? Give feedback.
-
Hey everyone, there's already an issue opened in Foundry about this: foundry-rs/foundry#8811 |
Beta Was this translation helpful? Give feedback.
-
The workaround proposed by Foundry is to use the On the other hand, I created #77 so that the option is included in the Usage section of the README |
Beta Was this translation helpful? Give feedback.
-
One of the solution assertions is that the player has not done more than 1 transaction. Somehow the player's nonce is always 0 despite having executed some transactions. For example I've executed
uniswapV1Exchange.tokenToEthSwapInput()
in the test functiontest_puppet()
butvm.getNonce(player)
still results in 0.Beta Was this translation helpful? Give feedback.
All reactions