Skip to content

Commit 11872c9

Browse files
committed
Relax gas_fee too high
1 parent 0bb2c6f commit 11872c9

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

substrate/frame/revive/src/evm/runtime.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,6 @@ pub trait EthExtra {
413413
return Err(InvalidTransaction::Payment.into())
414414
}
415415

416-
if eth_fee_no_tip > actual_fee.saturating_mul(2u32.into()) {
417-
log::debug!(target: LOG_TARGET, "actual fees: {actual_fee:?} too high, base eth fees:
418-
{eth_fee_no_tip:?}");
419-
return Err(InvalidTransaction::Call.into())
420-
}
421-
422416
let tip = eth_fee.saturating_sub(eth_fee_no_tip);
423417
log::debug!(target: LOG_TARGET, "Created checked Ethereum transaction with nonce: {nonce:?} and tip: {tip:?}");
424418
Ok(CheckedExtrinsic {
@@ -679,13 +673,6 @@ mod test {
679673
}),
680674
InvalidTransaction::Payment,
681675
),
682-
(
683-
"Gas fees too high",
684-
Box::new(|tx| {
685-
tx.gas = Some(tx.gas.unwrap() * 2);
686-
}),
687-
InvalidTransaction::Call,
688-
),
689676
(
690677
"Gas fees too low",
691678
Box::new(|tx| {

0 commit comments

Comments
 (0)