Skip to content

Commit

Permalink
estimate gas: always ignore user provided nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois authored and gonzamontiel committed Aug 19, 2024
1 parent c9b00dd commit b9afcca
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions client/rpc/src/eth/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@ where
gas,
value,
data,
nonce,
access_list,
..
} = request;
Expand All @@ -583,7 +582,7 @@ where
value.unwrap_or_default(),
gas_limit,
gas_price,
nonce,
None,
estimate_mode,
)
.map_err(|err| internal_err(format!("runtime error: {err}")))?
Expand All @@ -602,7 +601,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
)
.map_err(|err| internal_err(format!("runtime error: {err}")))?
Expand All @@ -622,7 +621,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
Some(
access_list
Expand All @@ -647,7 +646,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
Some(
access_list
Expand All @@ -673,7 +672,7 @@ where
value.unwrap_or_default(),
gas_limit,
gas_price,
nonce,
None,
estimate_mode,
)
.map_err(|err| internal_err(format!("runtime error: {err}")))?
Expand All @@ -691,7 +690,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
)
.map_err(|err| internal_err(format!("runtime error: {err}")))?
Expand All @@ -710,7 +709,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
Some(
access_list
Expand All @@ -734,7 +733,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
Some(
access_list
Expand Down

0 comments on commit b9afcca

Please sign in to comment.