Skip to content

Commit

Permalink
Relax gas_fee too high
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Jan 11, 2025
1 parent 0bb2c6f commit 11872c9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions substrate/frame/revive/src/evm/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,6 @@ pub trait EthExtra {
return Err(InvalidTransaction::Payment.into())
}

if eth_fee_no_tip > actual_fee.saturating_mul(2u32.into()) {
log::debug!(target: LOG_TARGET, "actual fees: {actual_fee:?} too high, base eth fees:
{eth_fee_no_tip:?}");
return Err(InvalidTransaction::Call.into())
}

let tip = eth_fee.saturating_sub(eth_fee_no_tip);
log::debug!(target: LOG_TARGET, "Created checked Ethereum transaction with nonce: {nonce:?} and tip: {tip:?}");
Ok(CheckedExtrinsic {
Expand Down Expand Up @@ -679,13 +673,6 @@ mod test {
}),
InvalidTransaction::Payment,
),
(
"Gas fees too high",
Box::new(|tx| {
tx.gas = Some(tx.gas.unwrap() * 2);
}),
InvalidTransaction::Call,
),
(
"Gas fees too low",
Box::new(|tx| {
Expand Down

0 comments on commit 11872c9

Please sign in to comment.