Skip to content

Commit

Permalink
Fix submit_and_watch example (paritytech#77)
Browse files Browse the repository at this point in the history
* fix submit_and_watch

* fix event name
  • Loading branch information
Satoshi-Kusumoto authored Mar 19, 2020
1 parent f4ef19e commit bee03e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/submit_and_watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit bee03e2

Please sign in to comment.