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

fix: use parent.state when kakarot fetches from starknet #32

Open
ClementWalter opened this issue Sep 18, 2024 · 0 comments
Open

fix: use parent.state when kakarot fetches from starknet #32

ClementWalter opened this issue Sep 18, 2024 · 0 comments

Comments

@ClementWalter
Copy link
Member

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.

@ClementWalter 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Backlog
Development

No branches or pull requests

1 participant