Skip to content

Commit

Permalink
add xcm const to primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofdeepanshu committed Oct 2, 2023
1 parent 1066173 commit 338413b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions precompiles/xcm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion precompiles/xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<XCM_SIZE_LIMIT>;

use pallet_evm::{AddressMapping, Precompile};
Expand Down

0 comments on commit 338413b

Please sign in to comment.