diff --git a/evm_loader/lib/src/types/mod.rs b/evm_loader/lib/src/types/mod.rs index c7787274d..e038c6f9c 100644 --- a/evm_loader/lib/src/types/mod.rs +++ b/evm_loader/lib/src/types/mod.rs @@ -158,7 +158,7 @@ impl TxParams { } else { let access_list_tx = AccessListTx { nonce, - gas_price: U256::ZERO, + gas_price: self.gas_price.unwrap_or(U256::ZERO), gas_limit: self.gas_limit.unwrap_or(U256::MAX), target: self.to, value: self.value.unwrap_or_default(), @@ -174,7 +174,7 @@ impl TxParams { } else { let legacy_tx = LegacyTx { nonce, - gas_price: U256::ZERO, + gas_price: self.gas_price.unwrap_or(U256::ZERO), gas_limit: self.gas_limit.unwrap_or(U256::MAX), target: self.to, value: self.value.unwrap_or_default(),