You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the kakarot implementation, we use Starknet contract storage as the backend for data and fetch data on the fly when required.
Since we don't need to use nor mimic the starknet storage in keth, but the initial state of the program is populated in a hint, we can use the parent.state instead.
What
Use message.parent.state to read values from the state as it is before the tx.
The text was updated successfully, but these errors were encountered:
ClementWalter
changed the title
fix: use parent.state whene kakarot fetches from starknet
fix: use parent.state when kakarot fetches from starknet
Sep 18, 2024
Why
In the kakarot implementation, we use Starknet contract storage as the backend for data and fetch data on the fly when required.
Since we don't need to use nor mimic the starknet storage in keth, but the initial state of the program is populated in a hint, we can use the
parent.state
instead.What
Use
message.parent.state
to read values from the state as it is before the tx.The text was updated successfully, but these errors were encountered: