mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 13:21:01 +00:00
polkadot-parachain-primitives should not depend on frame-support. (#1897)
This PR does not make any functional changes to the code. Rather, it restructures the dependency graph. Before this PR, the crate `polkadot-parachain-primitives` depended directly on the crate `frame-support`. This is wrong in principal because a parachain does not necessarily have anything to do with frame. This dependency was only for the `Weight` type which was just a re-export from `sp-weights` anyway. So this PR changes the dependency to be directly on the much lighter `sp-weights`. --------- Co-authored-by: Joshy Orndorff <git-user-email.h0ly5@simplelogin.com> Co-authored-by: command-bot <>
This commit is contained in:
@@ -20,12 +20,12 @@
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
use bounded_collections::{BoundedVec, ConstU32};
|
||||
use frame_support::weights::Weight;
|
||||
use parity_scale_codec::{CompactAs, Decode, Encode, MaxEncodedLen};
|
||||
use scale_info::TypeInfo;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sp_core::{bytes, RuntimeDebug, TypeId};
|
||||
use sp_runtime::traits::Hash as _;
|
||||
use sp_weights::Weight;
|
||||
|
||||
use polkadot_core_primitives::{Hash, OutboundHrmpMessage};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user