Skip to main content

All Questions

Tagged with
3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
25 views

Difficulty Storing Consensus-Derived Value in Storage: Observing Value in Pallet Log but Not in Storage

I'm trying to store a value obtained from the consensus, specifically sc_consensus_babe::fn import_block. While I can observe the value in the pallet through the log, it doesn't seem to be stored in ...
Deepak Chaudhary's user avatar
1 vote
1 answer
25 views

How to store and query the raw text?

I want to query the task from storage. Here is the Task struct and StorageMap #[derive(Clone, Encode, Decode, PartialEq, RuntimeDebug, TypeInfo, MaxEncodedLen, Default)] #[scale_info(...
Latte Xu's user avatar
  • 125
0 votes
0 answers
52 views

How to mutate a Vec<u16> in a struct in a DoubleStorageMap?

How do I mutate a DoubleStorageMap with a Vec<T::AccountId> as a value using a struct? Data::<T>::mutate( id.clone(), user_id.clone(), |params: &mut DataParams<T::AccountId>...
bobby dy's user avatar