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

Transaction error & nonce #430

Open
notV4l opened this issue Jun 30, 2024 · 0 comments
Open

Transaction error & nonce #430

notV4l opened this issue Jun 30, 2024 · 0 comments

Comments

@notV4l
Copy link
Contributor

notV4l commented Jun 30, 2024

for some reason in testing i have this error (contract is controller)

2024-06-30T12:21:22.857265Z  INFO katana::executor::blockifier: Executing transaction. error=transaction validation error: Error in the called contract (0x04086715be10545f4ddb43b7feaf50d4fd4a3d7235185065037877e4b455636d):
Error at pc=0:34910:
Could not reach the end of the program. RunResources has no remaining steps.
Cairo traceback (most recent call last):

so tx is failing, but nonce is increased and keep increasing for each tx request

2024-06-30T12:23:28.335873Z  INFO txpool: Transaction received. hash="0x28cea4524364859d1e1533fc74b939c3060d6c3ac6f263fc2447d3bcde614e6"
2024-06-30T12:23:28.335999Z DEBUG server: method="starknet_getTransactionStatus"
2024-06-30T12:23:28.336015Z  INFO katana::executor::blockifier: Executing transaction. error=invalid transaction nonce: expected 0 got 1
....
2024-06-30T12:25:17.425206Z  INFO txpool: Transaction received. hash="0x2abbd6075a9400b894136c08a91747924f913296ead7605423735d800b670a8"
2024-06-30T12:25:17.425494Z  INFO katana::executor::blockifier: Executing transaction. error=invalid transaction nonce: expected 0 got 2

controller should call getNonce to retrieve nonce before sending tx

after looking katana log, there is calls to getNonce and it return correct value 0

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

1 participant