mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
Remove in-tree max-encoded-len and use the new SCALE codec crate instead (#9163)
* Update impl-codec to use new upstream MaxEncodedLen trait * Adapt crates to use the updated codec crate for `MaxEncodedLen` * Remove max-encoded-len crate altogether * Fix test compilation in `pallet-proxy` * reorganize import (#9186) * Fix remaining `MaxEncodedLen` imports * Fix remaining old usages of max-encoded-len crate * Fix UI test * Manually depend on new impl-codec to fix Polkadot companion build * Use newly released primitive-types v0.9.1 that has new codec impls * Make sure codec deps are up-to-date in crates that use them Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com>
This commit is contained in:
@@ -1274,7 +1274,7 @@ pub mod pallet_prelude {
|
||||
RuntimeDebug, storage,
|
||||
traits::{
|
||||
Get, Hooks, IsType, GetPalletVersion, EnsureOrigin, PalletInfoAccess, StorageInfoTrait,
|
||||
ConstU32, GetDefault, MaxEncodedLen,
|
||||
ConstU32, GetDefault,
|
||||
},
|
||||
dispatch::{DispatchResultWithPostInfo, Parameter, DispatchError, DispatchResult},
|
||||
weights::{DispatchClass, Pays, Weight},
|
||||
@@ -1284,7 +1284,7 @@ pub mod pallet_prelude {
|
||||
},
|
||||
storage::bounded_vec::BoundedVec,
|
||||
};
|
||||
pub use codec::{Encode, Decode};
|
||||
pub use codec::{Encode, Decode, MaxEncodedLen};
|
||||
pub use crate::inherent::{InherentData, InherentIdentifier, ProvideInherent};
|
||||
pub use sp_runtime::{
|
||||
traits::{MaybeSerializeDeserialize, Member, ValidateUnsigned},
|
||||
@@ -2376,7 +2376,3 @@ pub mod pallet_prelude {
|
||||
/// * use the newest nightly possible.
|
||||
///
|
||||
pub use frame_support_procedural::pallet;
|
||||
|
||||
/// The `max_encoded_len` module contains the `MaxEncodedLen` trait and derive macro, which is
|
||||
/// useful for computing upper bounds on storage size.
|
||||
pub use max_encoded_len;
|
||||
|
||||
Reference in New Issue
Block a user