Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-04-21 17:06:41 +03:00
parent 36f4bc0197
commit 50d52130ae
3 changed files with 878 additions and 900 deletions
+4 -3
View File
@@ -59,6 +59,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let block_hash = block.hash();
println!(" Block {:?}", block_hash);
println!(" Block {:?}", block_hash);
// Ask for the extrinsics for this block.
for extrinsic in block.body().await?.extrinsics() {
@@ -69,9 +70,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
Ok(decoded) => {
if let Some((address, signature, extra)) = decoded.signature {
println!(" Decoded Signature");
println!(" Decoded Address: {:?}", address.to_value());
println!(" Decoded Sign: {:?}", signature.to_value());
println!(" Decoded Extra: {:?}", extra.to_value());
println!(" Decoded Address: {:?}", address);
println!(" Decoded Sign: {:?}", signature);
println!(" Decoded Extra: {:?}", extra);
};
let call = decoded.function;