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

Same state diff in several Mainnet transactions #928

Open
gabrielbosio opened this issue Nov 15, 2024 · 1 comment
Open

Same state diff in several Mainnet transactions #928

gabrielbosio opened this issue Nov 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gabrielbosio
Copy link
Contributor

gabrielbosio commented Nov 15, 2024

Commit where repos are on

Affected transactions

  • 0x22263b88bc853b53c8632a8a1e13aac392aa021ff353ddca321ce0359abb9bc in block 633647
  • 0x3a39ffa15d6e05920b28049ab389ed6ec252e249db94948b5b1af370acab1b0 in block 633852
  • 0x5f81552424958f1577133e6f9b58d909bbe0c21da86400bf77476c86502cf88 in block 633896
  • 0x4a0e62b491d8d5de00ed5e842c5cefd085b56715f92ed0ab370a252c00870d2 in block 633902
  • 0x647f5bb4d4de868a0e80abc639710d0b6df3a8d5f25b6005aaedabee3105f38 in block 633938
  • 0x23a79ad3f9c0145dedcda604204044c32357a326fab1c0fbfcb487c9e675d8 in block 633946

Problem

Line 203 of Cairo Native dump is:

"caller_address": "0x0"

Line 203 of Cairo VM dump is:

"caller_address": "0x7f63abcad960f980c12d650b2cc4c27a8f63ee1f6eb36ea8286a946a2330c1b"
@gabrielbosio gabrielbosio added the bug Something isn't working label Nov 15, 2024
@gabrielbosio gabrielbosio changed the title State diff in tx 0x22263b88bc853b53c8632a8a1e13aac392aa021ff353ddca321ce0359abb9bc from Mainnet block 633647 State diff in tx 0x22263b88bc853b53c8632a8a1e13aac392aa021ff353ddca321ce0359abb9bc in Mainnet block 633647 Nov 15, 2024
@gabrielbosio gabrielbosio changed the title State diff in tx 0x22263b88bc853b53c8632a8a1e13aac392aa021ff353ddca321ce0359abb9bc in Mainnet block 633647 Same state diff in several Mainnet transactions Nov 15, 2024
@gabrielbosio
Copy link
Contributor Author

From #933 (comment):

In starknet-replay, when a storage value can't be found, it's defaulted to 0x0: https://github.com/lambdaclass/starknet-replay/blob/66f38f2fd0df74331387560f5146b7642b3cb6c1/rpc-state-reader/src/reader.rs#L241-L249. This may be related, but it doesn't explain why the behaviour with the CairoVM is different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant