Skip to content

Commit

Permalink
Merge pull request #2307 from subspace/rsub/evm-metering
Browse files Browse the repository at this point in the history
Storage metering config
  • Loading branch information
rahulksnv authored Dec 11, 2023
2 parents 21faadb + 6efa811 commit 744df6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion domains/runtime/evm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,10 @@ impl pallet_evm::OnChargeEVMTransaction<Runtime> for EVMCurrencyAdapter {
}
}

parameter_types! {
pub const GasLimitPovSizeRatio: u64 = 4;
}

impl pallet_evm::Config for Runtime {
type FeeCalculator = BaseFee;
type GasWeightMapping = pallet_evm::FixedGasWeightMapping<Self>;
Expand All @@ -537,7 +541,7 @@ impl pallet_evm::Config for Runtime {
type OnChargeTransaction = EVMCurrencyAdapter;
type OnCreate = ();
type FindAuthor = FindAuthorTruncated;
type GasLimitPovSizeRatio = ();
type GasLimitPovSizeRatio = GasLimitPovSizeRatio;
type Timestamp = Timestamp;
type WeightInfo = pallet_evm::weights::SubstrateWeight<Self>;
}
Expand Down

0 comments on commit 744df6f

Please sign in to comment.