diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index bddf5129cb2a4..694acf1806ab1 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -354,7 +354,8 @@ impl fp_rpc::ConvertTransaction for TransactionConve pub struct EthereumFindAuthor(PhantomData); parameter_types! { - pub BlockGasLimit: u64 = NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT / WEIGHT_PER_GAS; + pub BlockGasLimit: U256 + = U256::from(NORMAL_DISPATCH_RATIO * MAXIMUM_BLOCK_WEIGHT / WEIGHT_PER_GAS); } impl pallet_ethereum::Config for Runtime { @@ -680,6 +681,10 @@ impl_runtime_apis! { Ethereum::current_transaction_statuses() ) } + + fn current_block_gas_limit() -> U256 { + ::BlockGasLimit::get() + } } impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi