Closed Trantorian1 closed 7 months ago
starknet_getStorageAt does not work for contracts declared on the Genesis block. This is due to storage diffs not being saved on Genesis sync.
starknet_getStorageAt
Resolves #28
GenesisConfig
crates/pallet/starknet/src/lib.rs
Yes. Nodes with an existing local db will have to be re-synchronized from block 0 to retrieve storage diffs for Genesis block.
starknet_getStorageAt was tested on the following contracts:
This consists only in preliminary tests, more will need to be added to Ditto.
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?
GenesisConfig
incrates/pallet/starknet/src/lib.rs
.starknet_getStorageAt
now works for contracts defined on the Genesis block.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.