Skip to content

Commit b72e8f0

Browse files
committed
fix compilation
1 parent a8a4a16 commit b72e8f0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

crates/evm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ pub mod error;
2020
pub use error::*;
2121
pub mod tx;
2222
pub use tx::*;
23-
pub mod precompiles;
2423
#[cfg(feature = "overrides")]
2524
pub mod overrides;
25+
pub mod precompiles;
2626
pub mod tracing;
2727

2828
mod either;

crates/evm/src/overrides.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ where
8989
env.difficulty = difficulty;
9090
}
9191
if let Some(time) = time {
92-
env.timestamp = time;
92+
env.timestamp = U256::from(time);
9393
}
9494
if let Some(gas_limit) = gas_limit {
9595
env.gas_limit = gas_limit;
@@ -143,8 +143,12 @@ where
143143
}
144144

145145
// Create a new account marked as touched
146-
let mut acc =
147-
revm::state::Account { info, status: AccountStatus::Touched, storage: Default::default() };
146+
let mut acc = revm::state::Account {
147+
info,
148+
status: AccountStatus::Touched,
149+
storage: Default::default(),
150+
transaction_id: 0,
151+
};
148152

149153
let storage_diff = match (account_override.state, account_override.state_diff) {
150154
(Some(_), Some(_)) => return Err(StateOverrideError::BothStateAndStateDiff(account)),
@@ -177,6 +181,7 @@ where
177181
original_value: (!value).into(),
178182
present_value: value.into(),
179183
is_cold: false,
184+
transaction_id: 0,
180185
},
181186
);
182187
}

0 commit comments

Comments
 (0)