KasarLabs / deoxys-fork

Deoxys 👽 is a Starknet full node based on substrate and powered by Rust 🦀
https://deoxys.kasar.io
MIT License
27 stars 8 forks source link

fix: :bug: `starknet_getStorageAt` #123

Closed Trantorian1 closed 7 months ago

Trantorian1 commented 7 months ago

Pull Request type

What is the current behavior?

starknet_getStorageAt does not work for contracts declared on the Genesis block. This is due to storage diffs not being saved on Genesis sync.

Resolves #28

What is the new behavior?

Does this introduce a breaking change?

Yes. Nodes with an existing local db will have to be re-synchronized from block 0 to retrieve storage diffs for Genesis block.

Other information

starknet_getStorageAt was tested on the following contracts:

This consists only in preliminary tests, more will need to be added to Ditto.