From 45f0f3557ead97bb17e230dc7591eea2cd4cb07f Mon Sep 17 00:00:00 2001 From: wangjj9219 <183318287@qq.com> Date: Fri, 4 Aug 2023 11:15:05 +0800 Subject: [PATCH] 2.19.1 --- 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 ea8f2f0393..a9e6aa00ad 100644 --- a/runtime/mandala/src/lib.rs +++ b/runtime/mandala/src/lib.rs @@ -103,6 +103,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, @@ -133,7 +134,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("mandala"), impl_name: create_runtime_str!("mandala"), authoring_version: 1, - spec_version: 2190, + spec_version: 2191, impl_version: 0, #[cfg(not(feature = "disable-runtime-api"))] apis: RUNTIME_API_VERSIONS, @@ -1578,7 +1579,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")] @@ -1639,7 +1640,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;