Skip to content

Commit

Permalink
remove xcm-precompile from astar runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofdeepanshu committed Aug 7, 2023
1 parent 06c65c5 commit 9c61ba8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion precompiles/xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ where
}
}
/// A precompile that expose XCM related functions.
pub struct XcmPrecompile<T, C>(PhantomData<(T, C)>);
pub struct XcmPrecompile<Runtime, C>(PhantomData<(Runtime, C)>);

impl<Runtime, C> Precompile for XcmPrecompile<Runtime, C>
where
Expand Down
8 changes: 4 additions & 4 deletions runtime/astar/src/precompiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -69,7 +69,7 @@ impl<R, C> PrecompileSet for AstarNetworkPrecompiles<R, C>
where
Erc20AssetsPrecompileSet<R>: PrecompileSet,
DappsStakingWrapper<R>: Precompile,
XcmPrecompile<R, C>: Precompile,
// XcmPrecompile<R, C>: Precompile,
Dispatch<R>: Precompile,
R: pallet_evm::Config
+ pallet_assets::Config
Expand Down Expand Up @@ -112,8 +112,8 @@ where
a if a == hash(20482) => Some(Sr25519Precompile::<R>::execute(handle)),
// SubstrateEcdsa 0x5003
a if a == hash(20483) => Some(SubstrateEcdsaPrecompile::<R>::execute(handle)),
// Xcm 0x5004
a if a == hash(20484) => Some(XcmPrecompile::<R, C>::execute(handle)),
// // Xcm 0x5004
// a if a == hash(20484) => Some(XcmPrecompile::<R, C>::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::<R>::new().execute(handle)
Expand Down

0 comments on commit 9c61ba8

Please sign in to comment.