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
Increase the Nonce in account contract #82
Comments
If the transaction fails the nonce should not change. Adding an I think you are having another issue, can you share code and steps to reproduce the issue? |
You can reproduce this by this way:
|
I bumped into the same problem today, and thought a bit about what is causing the issue. The issue seems to be that the |
I think this problem should be fix by StarkNet itself. Adding timestamp or something when compute the hash to solve it. |
Yeah agree this seems to be on the plate of StarkNet to solve. Maybe doing what Ethereum mainnet is doing with the built in nonces would work. My current workaround (without changing the code) is passing different nonce values as inputs to the execute call and to the signature inside the call. |
Hi all, |
Considering this is being solved by the upcoming validation/execution transaction split, I'm closing this issue. |
When I try sending execute method in Account contract, if the transaction is failed, the nonce is not update and I can't transfer again
I tried creating a transaction and sent it. It's failed then I can't call the transaction anymore, unless I call another transaction to increase the nonce, then come back again
So I think we can create an increase nonce method, to pass in the current nonce and update the nonce to the next nonce? So I can increase the nonce and call execute again.
The text was updated successfully, but these errors were encountered: