diff --git a/precompiles/xcm/src/lib.rs b/precompiles/xcm/src/lib.rs index 1ca025f1eb..134edcae09 100644 --- a/precompiles/xcm/src/lib.rs +++ b/precompiles/xcm/src/lib.rs @@ -95,7 +95,7 @@ where } } /// A precompile that expose XCM related functions. -pub struct XcmPrecompile(PhantomData<(T, C)>); +pub struct XcmPrecompile(PhantomData<(Runtime, C)>); impl Precompile for XcmPrecompile where diff --git a/runtime/astar/src/precompiles.rs b/runtime/astar/src/precompiles.rs index 0fd6df0cb1..c3c9cfc855 100644 --- a/runtime/astar/src/precompiles.rs +++ b/runtime/astar/src/precompiles.rs @@ -33,7 +33,7 @@ use pallet_evm_precompile_sha3fips::Sha3FIPS256; use pallet_evm_precompile_simple::{ECRecover, ECRecoverPublicKey, Identity, Ripemd160, Sha256}; use pallet_evm_precompile_sr25519::Sr25519Precompile; use pallet_evm_precompile_substrate_ecdsa::SubstrateEcdsaPrecompile; -use pallet_evm_precompile_xcm::XcmPrecompile; +// use pallet_evm_precompile_xcm::XcmPrecompile; use sp_core::H160; use sp_std::fmt::Debug; use sp_std::marker::PhantomData; @@ -69,7 +69,7 @@ impl PrecompileSet for AstarNetworkPrecompiles where Erc20AssetsPrecompileSet: PrecompileSet, DappsStakingWrapper: Precompile, - XcmPrecompile: Precompile, + // XcmPrecompile: Precompile, Dispatch: Precompile, R: pallet_evm::Config + pallet_assets::Config @@ -112,8 +112,8 @@ where a if a == hash(20482) => Some(Sr25519Precompile::::execute(handle)), // SubstrateEcdsa 0x5003 a if a == hash(20483) => Some(SubstrateEcdsaPrecompile::::execute(handle)), - // Xcm 0x5004 - a if a == hash(20484) => Some(XcmPrecompile::::execute(handle)), + // // Xcm 0x5004 + // a if a == hash(20484) => Some(XcmPrecompile::::execute(handle)), // If the address matches asset prefix, the we route through the asset precompile set a if &a.to_fixed_bytes()[0..4] == ASSET_PRECOMPILE_ADDRESS_PREFIX => { Erc20AssetsPrecompileSet::::new().execute(handle)