You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/evm/core/src/backend/mod.rs
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -868,7 +868,7 @@ impl Backend {
868
868
let fork = self.inner.get_fork_by_id_mut(id)?;
869
869
let full_block = fork.db.db.get_full_block(env.block.number.to::<u64>())?;
870
870
871
-
for tx in full_block.transactions.clone().into_transactions(){
871
+
for tx in full_block.inner.transactions.into_transactions(){
872
872
// System transactions such as on L2s don't contain any pricing info so we skip them
873
873
// otherwise this would cause reverts
874
874
ifis_known_system_sender(tx.from) ||
@@ -885,7 +885,7 @@ impl Backend {
885
885
trace!(tx=?tx.hash,"committing transaction");
886
886
887
887
commit_transaction(
888
-
tx,
888
+
&tx.inner,
889
889
env.clone(),
890
890
journaled_state,
891
891
fork,
@@ -1235,8 +1235,12 @@ impl DatabaseExt for Backend {
1235
1235
fork.db.db.get_transaction(transaction)?
1236
1236
};
1237
1237
1238
-
// This is a bit ambiguous because the user wants to transact an arbitrary transaction in the current context, but we're assuming the user wants to transact the transaction as it was mined. Usually this is used in a combination of a fork at the transaction's parent transaction in the block and then the transaction is transacted: <https://github.com/foundry-rs/foundry/issues/6538>
1239
-
// So we modify the env to match the transaction's block
1238
+
// This is a bit ambiguous because the user wants to transact an arbitrary transaction in
1239
+
// the current context, but we're assuming the user wants to transact the transaction as it
1240
+
// was mined. Usually this is used in a combination of a fork at the transaction's parent
1241
+
// transaction in the block and then the transaction is transacted:
0 commit comments