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 committed Apr 4, 2024
1 parent 670966e commit 101e61f
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 @@ -563,7 +563,6 @@ where
gas,
value,
data,
nonce,
access_list,
..
} = request;
Expand All @@ -586,7 +585,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 @@ -605,7 +604,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 @@ -625,7 +624,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
Some(
access_list
Expand All @@ -650,7 +649,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
Some(
access_list
Expand All @@ -676,7 +675,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 @@ -694,7 +693,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 @@ -713,7 +712,7 @@ where
gas_limit,
max_fee_per_gas,
max_priority_fee_per_gas,
nonce,
None,
estimate_mode,
Some(
access_list
Expand All @@ -737,7 +736,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 101e61f

Please sign in to comment.