-
Notifications
You must be signed in to change notification settings - Fork 144
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
Wrongful nonce error when sending transaction from lazy-created account #9310
Comments
Hey @konstantinabl just wanted to ask if you have any idea when this will be fixed? |
Hey @Nana-EC just wanted to ask if there's any indication of progress on this issue, would really prefer to not deploy a non-canonical version of safe which is required for our dApp. |
Hi @mshakeg P.S. we didn't test on mainnet, only testnet and local node. |
Hey @stoqnkpL hmm, that's really strange, but the issue still persists for the below testnet transaction by account curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["0xf8a88086019c1c38a400830149f88080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3820273a0643f821328556c0a64ceb550b926d1c35eb38285086042f1856b018e2696d8b2a052291d2b40968efc09c3e395d9e1c9e34437a1502be6031437fe0ba2d100baa9"],"id":1}' -H "Content-Type: application/json" https://testnet.hashio.io/api Returns response: {
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": 32001,
"name": "Nonce too low",
"message": "[Request ID: 84fb1193-0a3c-4732-b0e2-5b105f102553] Nonce too low. Provided nonce: 0, current nonce: 0"
}
} |
Okay, I know what happened.
TLDR is the transaction has an invalid |
@stoqnkpL, thanks for the explanation. Just to confirm: despite the transaction with nonce 0 not being processed due to a low gasPrice, has the nonce for account |
@mshakeg yes, that's correct. The thinking here is the following: every transaction that has reached consensus and is included in a block should increase the signer nonce. This is equivalent behavior with Ethereum. |
@stoqnkpL thanks for clarifying that. I really think a gasPrice precheck should be added for behaviour consistent with Ethereum. It would be even better if account |
@mshakeg as part of equivalence we're exploring the correct behavior noted. |
@Nana-EC the Gnosis Safe team manages address I can deploy a non-canonical safe-singleton-factory by an account managed by me, but then Hedera won't have a canonical Gnosis Safe deployment. |
I think this is a bug in Hedera and a bug in our Ethereum Equivalence. If the transaction fails prior to entry into the EVM we should not increment the nonce, even if this happens at consensus. I also think errata to reset the account nonce to remove the incorrect increment is not "breeching the sovereignty" of the account as it was an untyped transaction not targeting Hedera. The intent of the transaction was for it to work in EE ways across all chains. |
Description
Sending a transaction from a new lazy-created account that reverts and then we send a second one, the second one fails with WRONG_NONCE, although the sent nonce and the account nonce in hash scan and requested via the relay both appear as 0
In the relay the error is
Nonce too low. Provided nonce: 0, current nonce: 0
The issue was found when investigating hashgraph/hedera-json-rpc-relay#1803
Steps to reproduce
Nonce too low. Provided nonce: 0, current nonce: 0
Additional context
No response
Hedera network
testnet
Version
0.42.1
Operating system
macOS
The text was updated successfully, but these errors were encountered: