Questions tagged [maxencodedlen]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer

What is Dev Mode? And how can I use it?

I heard there is something called Dev Mode in Substrate for pallet development. What is Dev Mode? And how can I use it?
Bruno's user avatar
  • 8,130
2 votes
1 answer

function or associated item not found in `std::vec::Vec<u8>` when using MaxEndodedLen

I have a struct definition as follows #[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug, TypeInfo, MaxEncodedLen)] pub struct Songs { pub name: Vec<u8>, pub cast: Vec<u8>,...
not 0x12's user avatar
  • 343
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 :...
Clara van Staden's user avatar
12 votes
2 answers

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::...
Shawn Tabrizi's user avatar
  • 15.8k