Questions tagged [maxencodedlen]
The maxencodedlen tag has no usage guidance.
4
questions
2
votes
1
answer
77
views
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?
2
votes
1
answer
48
views
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>,...
2
votes
1
answer
200
views
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 :...
12
votes
2
answers
574
views
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/lib.rs:42:15
|
42 | #[pallet::...