From 8f3deb440e981f9e3d012981970a5cbe13bb6cc0 Mon Sep 17 00:00:00 2001 From: Ahmad Kaouk Date: Thu, 25 Jan 2024 10:46:05 +0100 Subject: [PATCH] Fix mock --- Cargo.lock | 2 +- frame/evm/precompile/clear-storage/src/mock.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 9766aac926..8b83295295 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5766,7 +5766,7 @@ dependencies = [ "sp-core", "sp-io", "sp-runtime", - "sp-std", + "sp-std 8.0.0 (git+https://github.com/paritytech/polkadot-sdk?branch=release-polkadot-v1.6.0)", ] [[package]] diff --git a/frame/evm/precompile/clear-storage/src/mock.rs b/frame/evm/precompile/clear-storage/src/mock.rs index bd9b142b8f..45b7f43d20 100644 --- a/frame/evm/precompile/clear-storage/src/mock.rs +++ b/frame/evm/precompile/clear-storage/src/mock.rs @@ -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; @@ -89,6 +90,7 @@ impl pallet_balances::Config for Runtime { type MaxReserves = (); type MaxHolds = (); type MaxFreezes = (); + type RuntimeFreezeReason = (); } parameter_types! { @@ -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 = Precompiles::new(); + pub SuicideQuickClearLimit: u32 = 0; } impl pallet_evm::Config for Runtime { @@ -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.