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

Juno traces - revert reason #2143

Open
rianhughes opened this issue Sep 13, 2024 · 1 comment
Open

Juno traces - revert reason #2143

rianhughes opened this issue Sep 13, 2024 · 1 comment
Assignees

Comments

@rianhughes
Copy link
Contributor

rianhughes commented Sep 13, 2024

The revert reason that traces return can be different than those present in the receipt (although quite similar).

{
    "jsonrpc": "2.0",
    "method": "starknet_traceTransaction",
    "params": {
        "transaction_hash": "0x4da177346e3714431c4f44589aa86529675cddf6c5c684121ed31581ff1874b"
    },
    "id": 1
}

The revert reason contains (see the \n\n2: Error in a library call (contract address: 0x02ee099d4e8f46d556f7e355145e5041951c4487df5ba2e796dd3899256e0835, part of the message):

\nError message: Invalid chain id

Which isn't present in the receipt


{
	"jsonrpc":"2.0",
	"method":"starknet_getTransactionReceipt",
    "params" : {"transaction_hash":"0x4da177346e3714431c4f44589aa86529675cddf6c5c684121ed31581ff1874b"},
	"id":1
}

This breaks re-execution (since the revert reason is needed compute the receipt commitment). It also doesn't seem to be present in Pathfinders response (although I may be running pathfinder with blockifier-rc2)

@rianhughes rianhughes self-assigned this Sep 13, 2024
@rianhughes
Copy link
Contributor Author

rianhughes commented Sep 13, 2024

Likely culprit:

blockifier rc 2

vs

blockifier rc 3

Transaction 0x4da177346e3714431c4f44589aa86529675cddf6c5c684121ed31581ff1874b was in a 0.13.2 block, but seems to be executed with blockifier-rc2.

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