From 546c8ce2a5ed9110c802bd300a30d340b2d014ff Mon Sep 17 00:00:00 2001 From: Rez Date: Mon, 28 Jul 2025 16:02:58 +1000 Subject: [PATCH 1/2] fix --- src/transaction/pol.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/transaction/pol.rs b/src/transaction/pol.rs index de5988af..96c3197b 100644 --- a/src/transaction/pol.rs +++ b/src/transaction/pol.rs @@ -14,6 +14,8 @@ use reth_chainspec::EthChainSpec; use reth_evm::block::{BlockExecutionError, InternalBlockExecutionError}; use std::sync::Arc; +pub const POL_TX_GAS_LIMIT: u64 = 30_000_000; + pub fn create_pol_transaction( chain_spec: Arc, prev_proposer_pubkey: BlsPublicKey, @@ -45,9 +47,9 @@ pub fn create_pol_transaction( to: chain_spec.pol_contract(), input: Bytes::from(calldata), nonce, - gas_limit: eip7825::TX_GAS_LIMIT_CAP, // this is the env value used in revm for system calls - gas_price: base_fee.into(), /* gas price is set to the base fee for RPC - * compatability reasons */ + gas_limit: POL_TX_GAS_LIMIT, // this is the env value used in revm for system calls + gas_price: base_fee.into(), /* gas price is set to the base fee for RPC + * compatability reasons */ }; Ok(BerachainTxEnvelope::Berachain(Sealed::new(pol_tx))) From b862385fb4178b7e9b2ac3b339a7bb9153be7763 Mon Sep 17 00:00:00 2001 From: Rez Date: Mon, 28 Jul 2025 16:03:15 +1000 Subject: [PATCH 2/2] Update pol.rs --- src/transaction/pol.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/transaction/pol.rs b/src/transaction/pol.rs index 96c3197b..d990fa45 100644 --- a/src/transaction/pol.rs +++ b/src/transaction/pol.rs @@ -6,10 +6,7 @@ use crate::{ use alloy_primitives::{Bytes, Sealed, U256}; use alloy_sol_macro::sol; use alloy_sol_types::SolCall; -use reth::{ - consensus::ConsensusError, - revm::{handler::SYSTEM_ADDRESS, primitives::eip7825}, -}; +use reth::{consensus::ConsensusError, revm::handler::SYSTEM_ADDRESS}; use reth_chainspec::EthChainSpec; use reth_evm::block::{BlockExecutionError, InternalBlockExecutionError}; use std::sync::Arc;