We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some functions of the state.cairo require an access to the previous state. This is done with the definition of a _snapshots entry in the EELS state.
_snapshots
Add a _snapshots: State* to the state definition and use this state in fetch_original_storage
_snapshots: State*
fetch_original_storage
struct State { accounts_start: DictAccess*, accounts: DictAccess*, events_len: felt, events: Event*, transfers_len: felt, transfers: Transfer*, _snapshots: State*, }
cast(0, State*)
get_storage_original
state.cairo
read_storage
Account.fetch_original_storage
sstore
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why
Some functions of the state.cairo require an access to the previous state. This is done with the definition of a
_snapshots
entry in the EELS state.What
Add a
_snapshots: State*
to the state definition and use this state infetch_original_storage
How
cast(0, State*)
get_storage_original
instate.cairo
similar toread_storage
but applied to the snapshotted stateAccount.fetch_original_storage
and use this new method insstore
The text was updated successfully, but these errors were encountered: