From fe67fd1fcb8e666d769d55fec09bf171750ac4a1 Mon Sep 17 00:00:00 2001 From: wangjj9219 <183318287@qq.com> Date: Wed, 13 Sep 2023 12:05:20 +0800 Subject: [PATCH] enable liquid_crowdloan precompile for mandala (#2616) --- runtime/mandala/src/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/runtime/mandala/src/lib.rs b/runtime/mandala/src/lib.rs index a722444a0a..16a5630f0b 100644 --- a/runtime/mandala/src/lib.rs +++ b/runtime/mandala/src/lib.rs @@ -104,6 +104,7 @@ pub use primitives::{ DataProviderId, EraIndex, Hash, Lease, Moment, Multiplier, Nonce, ReserveIdentifier, Share, Signature, TokenSymbol, TradingPair, }; +use runtime_common::precompile::AcalaPrecompiles; pub use runtime_common::{ cent, dollar, microcent, millicent, AcalaDropAssets, AllPrecompiles, CheckRelayNumber, CurrencyHooks, EnsureRootOrAllGeneralCouncil, EnsureRootOrAllTechnicalCommittee, EnsureRootOrHalfFinancialCouncil, @@ -134,7 +135,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mandala"), impl_name: create_runtime_str!("mandala"), authoring_version: 1, - spec_version: 2210, + spec_version: 2211, impl_version: 0, #[cfg(not(feature = "disable-runtime-api"))] apis: RUNTIME_API_VERSIONS, @@ -1576,7 +1577,7 @@ impl pallet_proxy::Config for Runtime { parameter_types! { pub NetworkContractSource: H160 = H160::from_low_u64_be(0); - pub PrecompilesValue: AllPrecompiles, ()> = AllPrecompiles::<_, _, _>::mandala(); + pub PrecompilesValue: AllPrecompiles, AcalaPrecompiles> = AllPrecompiles::<_, _, _>::mandala(); } #[cfg(feature = "with-ethereum-compatibility")] @@ -1637,7 +1638,8 @@ impl module_evm::Config for Runtime { type StorageDepositPerByte = StorageDepositPerByte; type TxFeePerGas = TxFeePerGas; type RuntimeEvent = RuntimeEvent; - type PrecompilesType = AllPrecompiles, ()>; + type PrecompilesType = + AllPrecompiles, AcalaPrecompiles>; type PrecompilesValue = PrecompilesValue; type GasToWeight = GasToWeight; type ChargeTransactionPayment = module_transaction_payment::ChargeTransactionPayment;