From 9cd21fc1ad761134e363370a63f098b591afdf03 Mon Sep 17 00:00:00 2001 From: pgherveou Date: Mon, 23 Dec 2024 12:53:59 +0100 Subject: [PATCH] fix build for westend & kitchensink --- .../assets/asset-hub-westend/src/lib.rs | 24 +++++++++---------- substrate/bin/node/runtime/src/lib.rs | 19 +++++++++------ 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs index 5424a11dfd3d..061cbc914314 100644 --- a/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs +++ b/cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs @@ -949,11 +949,6 @@ parameter_types! { pub CodeHashLockupDepositPercent: Perbill = Perbill::from_percent(30); } -type EventRecord = frame_system::EventRecord< - ::RuntimeEvent, - ::Hash, ->; - impl pallet_revive::Config for Runtime { type Time = Timestamp; type Currency = Balances; @@ -2077,7 +2072,7 @@ impl_runtime_apis! { } } - impl pallet_revive::ReviveApi for Runtime + impl pallet_revive::ReviveApi for Runtime { fn balance(address: H160) -> U256 { Revive::evm_balance(&address) @@ -2102,6 +2097,7 @@ impl_runtime_apis! { tx, blockweights.max_block, encoded_size, + pallet_revive::debug::Tracer::Disabled, ) } @@ -2112,7 +2108,7 @@ impl_runtime_apis! { gas_limit: Option, storage_deposit_limit: Option, input_data: Vec, - ) -> pallet_revive::ContractResult { + ) -> pallet_revive::ContractResult { let blockweights= ::BlockWeights::get(); Revive::bare_call( RuntimeOrigin::signed(origin), @@ -2121,8 +2117,7 @@ impl_runtime_apis! { gas_limit.unwrap_or(blockweights.max_block), pallet_revive::DepositLimit::Balance(storage_deposit_limit.unwrap_or(u128::MAX)), input_data, - pallet_revive::DebugInfo::UnsafeDebug, - pallet_revive::CollectEvents::UnsafeCollect, + pallet_revive::debug::Tracer::Disabled, ) } @@ -2134,7 +2129,7 @@ impl_runtime_apis! { code: pallet_revive::Code, data: Vec, salt: Option<[u8; 32]>, - ) -> pallet_revive::ContractResult + ) -> pallet_revive::ContractResult { let blockweights= ::BlockWeights::get(); Revive::bare_instantiate( @@ -2145,8 +2140,7 @@ impl_runtime_apis! { code, data, salt, - pallet_revive::DebugInfo::UnsafeDebug, - pallet_revive::CollectEvents::UnsafeCollect, + pallet_revive::debug::Tracer::Disabled, ) } @@ -2172,6 +2166,12 @@ impl_runtime_apis! { key ) } + + fn trace_tx( + _tx: sp_core::H256 + ) -> Result { + todo!() + } } } diff --git a/substrate/bin/node/runtime/src/lib.rs b/substrate/bin/node/runtime/src/lib.rs index 26b40bba5a5e..e066c332c696 100644 --- a/substrate/bin/node/runtime/src/lib.rs +++ b/substrate/bin/node/runtime/src/lib.rs @@ -3208,7 +3208,7 @@ impl_runtime_apis! { } } - impl pallet_revive::ReviveApi for Runtime + impl pallet_revive::ReviveApi for Runtime { fn balance(address: H160) -> U256 { Revive::evm_balance(&address) @@ -3233,6 +3233,7 @@ impl_runtime_apis! { tx, blockweights.max_block, encoded_size, + pallet_revive::debug::Tracer::Disabled, ) } @@ -3243,7 +3244,7 @@ impl_runtime_apis! { gas_limit: Option, storage_deposit_limit: Option, input_data: Vec, - ) -> pallet_revive::ContractResult { + ) -> pallet_revive::ContractResult { Revive::bare_call( RuntimeOrigin::signed(origin), dest, @@ -3251,8 +3252,7 @@ impl_runtime_apis! { gas_limit.unwrap_or(RuntimeBlockWeights::get().max_block), pallet_revive::DepositLimit::Balance(storage_deposit_limit.unwrap_or(u128::MAX)), input_data, - pallet_revive::DebugInfo::UnsafeDebug, - pallet_revive::CollectEvents::UnsafeCollect, + pallet_revive::debug::Tracer::Disabled, ) } @@ -3264,7 +3264,7 @@ impl_runtime_apis! { code: pallet_revive::Code, data: Vec, salt: Option<[u8; 32]>, - ) -> pallet_revive::ContractResult + ) -> pallet_revive::ContractResult { Revive::bare_instantiate( RuntimeOrigin::signed(origin), @@ -3274,8 +3274,7 @@ impl_runtime_apis! { code, data, salt, - pallet_revive::DebugInfo::UnsafeDebug, - pallet_revive::CollectEvents::UnsafeCollect, + pallet_revive::debug::Tracer::Disabled, ) } @@ -3301,6 +3300,12 @@ impl_runtime_apis! { key ) } + + fn trace_tx( + _tx: sp_core::H256 + ) -> Result { + todo!() + } } impl pallet_transaction_payment_rpc_runtime_api::TransactionPaymentApi<