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

Clarify EVM::transact and State #829

Open
mattsse opened this issue Oct 21, 2023 · 0 comments
Open

Clarify EVM::transact and State #829

mattsse opened this issue Oct 21, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@mattsse
Copy link
Collaborator

mattsse commented Oct 21, 2023

it's not obvious what kind of accounts are included in the State map result of

/// Execute transaction without writing to DB, return change state.
pub fn transact(&mut self) -> EVMResult<DB::Error> {

here:

/// State that got updated
pub state: State,

does this mean that only accounts with at least 1 account change (balance,nonce,account) and/or storage value change are included?

does this never included accounts that were only touched?

@rakita rakita added the documentation Improvements or additions to documentation label Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants