Skip to content

Commit

Permalink
docs: add some prestate docs (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 28, 2024
1 parent 53ef6c2 commit e104f7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/rpc-trace-types/src/geth/pre_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ impl PreStateFrame {
}
}

/// Includes all the account states necessary to execute a given transaction.
///
/// This corresponds to the default mode of the [PreStateConfig].
///
/// The [AccountState]'s storage will include all non-zero slots that are modified by a transaction.
#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
pub struct PreStateMode(pub BTreeMap<Address, AccountState>);

Expand Down

0 comments on commit e104f7d

Please sign in to comment.