Questions tagged [maxencodedlen]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer

The trait Deserialize is not implemented for a Get<u32> constant

I am implementing the MaxEncodedLen trait for my pallet. I have this struct in a separate crate. I use this struct as my GenesisConfig, which is why it derives serde::Serialize and serde::Deserialize :...
11 votes
1 answer

How to fix `parity_scale_codec::MaxEncodedLen` is not implemented for `T`?

When building my pallet, I run into the error: error[E0277]: the trait bound `T: parity_scale_codec::MaxEncodedLen` is not satisfied --> pallets/template/src/ | 42 | #[pallet::...
  • 13.6k