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/anvil/src/eth/backend/mem/mod.rs
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1125,6 +1125,13 @@ impl Backend {
1125
1125
}).await?
1126
1126
}
1127
1127
1128
+
/// ## EVM settings
1129
+
///
1130
+
/// This modifies certain EVM settings to mirror geth's `SkipAccountChecks` when transacting requests, see also: <https://github.com/ethereum/go-ethereum/blob/380688c636a654becc8f114438c2a5d93d2db032/core/state_transition.go#L145-L148>:
1131
+
///
1132
+
/// - `disable_eip3607` is set to `true`
1133
+
/// - `disable_base_fee` is set to `true`
1134
+
/// - `nonce` is set to `None`
1128
1135
fnbuild_call_env(
1129
1136
&self,
1130
1137
request:WithOtherFields<TransactionRequest>,
@@ -1139,10 +1146,11 @@ impl Backend {
1139
1146
gas,
1140
1147
value,
1141
1148
input,
1142
-
nonce,
1143
1149
access_list,
1144
1150
blob_versioned_hashes,
1145
1151
authorization_list,
1152
+
// nonce is always ignored for calls
1153
+
nonce: _,
1146
1154
sidecar: _,
1147
1155
chain_id: _,
1148
1156
transaction_type: _,
@@ -1190,7 +1198,8 @@ impl Backend {
1190
1198
value: value.unwrap_or_default(),
1191
1199
data: input.into_input().unwrap_or_default(),
1192
1200
chain_id:None,
1193
-
nonce,
1201
+
// set nonce to None so that the correct nonce is chosen by the EVM
0 commit comments