1
2
3
4
5
6
7
8
9
10
11
12
use codec::Decode;
use framenode_runtime::UncheckedExtrinsic;

fn main() {
    let mut args = std::env::args();
    let _ = args.next();
    let bytes = args.next().unwrap();
    let mut bytes = hex::decode(bytes).unwrap();
    bytes.insert(0, 0);
    let ext = UncheckedExtrinsic::decode(&mut &bytes[..]).unwrap();
    println!("{ext:?}");
}