From 338413bafcb59f63f0c26665a068e51faea427b1 Mon Sep 17 00:00:00 2001 From: Deepanshu Hooda Date: Mon, 2 Oct 2023 23:12:28 +0530 Subject: [PATCH] add xcm const to primitives --- precompiles/xcm/Cargo.toml | 1 + precompiles/xcm/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/precompiles/xcm/Cargo.toml b/precompiles/xcm/Cargo.toml index 16b372c34f..9e792d419b 100644 --- a/precompiles/xcm/Cargo.toml +++ b/precompiles/xcm/Cargo.toml @@ -13,6 +13,7 @@ num_enum = { workspace = true } pallet-evm-precompile-assets-erc20 = { workspace = true } pallet-xcm = { workspace = true } precompile-utils = { workspace = true } +astar-primitives = { workspace = true } # Substrate frame-support = { workspace = true } diff --git a/precompiles/xcm/src/lib.rs b/precompiles/xcm/src/lib.rs index 8086b9ff13..05d78bb8fd 100644 --- a/precompiles/xcm/src/lib.rs +++ b/precompiles/xcm/src/lib.rs @@ -24,7 +24,7 @@ use frame_support::{ pallet_prelude::Weight, traits::{ConstU32, Get}, }; -pub const XCM_SIZE_LIMIT: u32 = 2u32.pow(16); +use astar_primitives::xcm::constants::XCM_SIZE_LIMIT; type GetXcmSizeLimit = ConstU32; use pallet_evm::{AddressMapping, Precompile};