Skip to content

Commit

Permalink
Revert "feat: derive (De)Serialize for PlainAccount"
Browse files Browse the repository at this point in the history
This reverts commit 7e1ae0c.
  • Loading branch information
kien-rise committed May 22, 2024
1 parent 7e1ae0c commit a68c009
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
8 changes: 0 additions & 8 deletions crates/primitives/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,20 +194,12 @@ impl StorageSlot {
pub struct AccountInfo {
/// Account balance.
pub balance: U256,
#[cfg_attr(feature = "serde", serde(skip_serializing))]
#[cfg_attr(feature = "serde", serde(default))]
pub previous_or_original_balance: U256,
/// Account nonce.
pub nonce: u64,
#[cfg_attr(feature = "serde", serde(skip_serializing))]
#[cfg_attr(feature = "serde", serde(default))]
pub previous_or_original_nonce: u64,
/// code hash,
#[cfg_attr(feature = "serde", serde(skip_serializing))]
#[cfg_attr(feature = "serde", serde(default))]
pub code_hash: B256,
#[cfg_attr(feature = "serde", serde(skip_serializing))]
#[cfg_attr(feature = "serde", serde(default))]
pub previous_or_original_code_hash: B256,
/// code: if None, `code_by_hash` will be used to fetch it if code needs to be loaded from
/// inside of `revm`.
Expand Down
1 change: 0 additions & 1 deletion crates/revm/src/db/states/plain_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use revm_interpreter::primitives::{AccountInfo, HashMap, StorageSlot, U256};

// TODO rename this to BundleAccount. As for the block level we have original state.
#[derive(Clone, Debug, Default, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct PlainAccount {
pub info: AccountInfo,
pub storage: PlainStorage,
Expand Down

0 comments on commit a68c009

Please sign in to comment.