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

chore: Load caller in finalization fn #604

Merged
merged 1 commit into from
Aug 16, 2023
Merged

chore: Load caller in finalization fn #604

merged 1 commit into from
Aug 16, 2023

Conversation

rakita
Copy link
Member

@rakita rakita commented Aug 16, 2023

The caller is already loaded inside journaled_state but if env.tx.caller gets changed this would panic on unwrap as it is happening inside the foundry.

So we are now loading an account is a safe way to mitigate this. This will call Database to fetch account

@rakita rakita merged commit c785115 into main Aug 16, 2023
@rakita rakita deleted the safe_load branch August 25, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant