From bee03e25df78bdb6d4a572e33846c4458bc529e4 Mon Sep 17 00:00:00 2001 From: Black3HDF <29630164+Satoshi-Kusumoto@users.noreply.github.com> Date: Fri, 20 Mar 2020 00:08:00 +0800 Subject: [PATCH] Fix submit_and_watch example (#77) * fix submit_and_watch * fix event name --- examples/submit_and_watch.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/submit_and_watch.rs b/examples/submit_and_watch.rs index 019313e982..c40553c50b 100644 --- a/examples/submit_and_watch.rs +++ b/examples/submit_and_watch.rs @@ -51,14 +51,14 @@ fn main() { match result { Ok(extrinsic_success) => { match extrinsic_success - .find_event::<(AccountId, AccountId, Balance, Balance)>( + .find_event::<(AccountId, AccountId, Balance)>( "Balances", "Transfer", ) { - Some(Ok((_from, _to, value, _fees))) => { + Some(Ok((_from, _to, value))) => { println!("Balance transfer success: value: {:?}", value) } Some(Err(err)) => println!("Failed to decode code hash: {}", err), - None => println!("Failed to find Contracts::CodeStored Event"), + None => println!("Failed to find Balances::Transfer Event"), } } Err(err) => println!("Error: {:?}", err),