diff --git a/crates/revm/src/bsc/handler_register.rs b/crates/revm/src/bsc/handler_register.rs index 6975a970..4fdbdcc7 100644 --- a/crates/revm/src/bsc/handler_register.rs +++ b/crates/revm/src/bsc/handler_register.rs @@ -64,6 +64,17 @@ pub fn collect_system_reward( context: &mut Context, gas: &Gas, ) -> Result<(), EVMError> { + if context + .evm + .env + .tx + .bsc + .is_system_transaction + .unwrap_or(false) + { + return Ok(()); + } + let effective_gas_price = context.evm.env.effective_gas_price(); let mut tx_fee = U256::from(gas.spent() - gas.refunded() as u64) * effective_gas_price;