Skip to content

Commit

Permalink
enable liquid_crowdloan precompile for mandala (#2616)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjj9219 authored Sep 13, 2023
1 parent 3ed4dbb commit fe67fd1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions runtime/mandala/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -1576,7 +1577,7 @@ impl pallet_proxy::Config for Runtime {

parameter_types! {
pub NetworkContractSource: H160 = H160::from_low_u64_be(0);
pub PrecompilesValue: AllPrecompiles<Runtime, module_transaction_pause::PausedPrecompileFilter<Runtime>, ()> = AllPrecompiles::<_, _, _>::mandala();
pub PrecompilesValue: AllPrecompiles<Runtime, module_transaction_pause::PausedPrecompileFilter<Runtime>, AcalaPrecompiles<Runtime>> = AllPrecompiles::<_, _, _>::mandala();
}

#[cfg(feature = "with-ethereum-compatibility")]
Expand Down Expand Up @@ -1637,7 +1638,8 @@ impl module_evm::Config for Runtime {
type StorageDepositPerByte = StorageDepositPerByte;
type TxFeePerGas = TxFeePerGas;
type RuntimeEvent = RuntimeEvent;
type PrecompilesType = AllPrecompiles<Self, module_transaction_pause::PausedPrecompileFilter<Self>, ()>;
type PrecompilesType =
AllPrecompiles<Self, module_transaction_pause::PausedPrecompileFilter<Self>, AcalaPrecompiles<Runtime>>;
type PrecompilesValue = PrecompilesValue;
type GasToWeight = GasToWeight;
type ChargeTransactionPayment = module_transaction_payment::ChargeTransactionPayment<Runtime>;
Expand Down

0 comments on commit fe67fd1

Please sign in to comment.