Questions tagged [parse]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
2 answers
129 views

How to parse/match a specific frame_system event?

From the following function I can read the frame_system events: let events = frame_system::Pallet::<T>::read_events_no_consensus(); the above provides me the following example array: ...
Pablo Buitrago's user avatar
2 votes
1 answer
704 views

How to convert Vec<u8> to u32 in Substrate runtime?

AFAIK, we can't use std in Substrate WASM runtime, what is the most effective way to convert a string to a number in runtime. For example: string "48" in Vec to 48 in u32.
lucycollins's user avatar