mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 07:37:57 +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:
@@ -39,8 +39,6 @@ pub use sp_std::{
|
||||
ops::Deref,
|
||||
vec::Vec,
|
||||
};
|
||||
#[doc(hidden)]
|
||||
pub use max_encoded_len;
|
||||
|
||||
pub mod ed25519;
|
||||
pub mod sr25519;
|
||||
@@ -200,9 +198,9 @@ macro_rules! app_crypto_public_full_crypto {
|
||||
$crate::codec::Encode,
|
||||
$crate::codec::Decode,
|
||||
$crate::RuntimeDebug,
|
||||
$crate::max_encoded_len::MaxEncodedLen,
|
||||
$crate::codec::MaxEncodedLen,
|
||||
)]
|
||||
#[max_encoded_len_crate($crate::max_encoded_len)]
|
||||
#[codec(crate = $crate::codec)]
|
||||
pub struct Public($public);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user