Skip to content

Commit

Permalink
Fix mock
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadkaouk committed Jan 25, 2024
1 parent 3b5e877 commit 8f3deb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions frame/evm/precompile/clear-storage/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ impl frame_system::Config for Runtime {
type BlockLength = ();
type RuntimeOrigin = RuntimeOrigin;
type RuntimeCall = RuntimeCall;
type RuntimeTask = RuntimeTask;
type Nonce = u64;
type Hash = H256;
type Hashing = BlakeTwo256;
Expand Down Expand Up @@ -89,6 +90,7 @@ impl pallet_balances::Config for Runtime {
type MaxReserves = ();
type MaxHolds = ();
type MaxFreezes = ();
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand All @@ -114,6 +116,7 @@ parameter_types! {
pub const GasLimitPovSizeRatio: u64 = BLOCK_GAS_LIMIT.saturating_div(MAX_POV_SIZE);
pub WeightPerGas: Weight = Weight::from_parts(20_000, 0);
pub PrecompilesValue: Precompiles<Runtime> = Precompiles::new();
pub SuicideQuickClearLimit: u32 = 0;
}

impl pallet_evm::Config for Runtime {
Expand All @@ -137,6 +140,7 @@ impl pallet_evm::Config for Runtime {
type GasLimitPovSizeRatio = GasLimitPovSizeRatio;
type Timestamp = Timestamp;
type WeightInfo = ();
type SuicideQuickClearLimit = SuicideQuickClearLimit;
}

/// Build test externalities, prepopulated with data for testing the precompile.
Expand Down

0 comments on commit 8f3deb4

Please sign in to comment.