Skip to content

Commit bee03e2

Browse files
Fix submit_and_watch example (paritytech#77)
* fix submit_and_watch * fix event name
1 parent f4ef19e commit bee03e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/submit_and_watch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ fn main() {
5151
match result {
5252
Ok(extrinsic_success) => {
5353
match extrinsic_success
54-
.find_event::<(AccountId, AccountId, Balance, Balance)>(
54+
.find_event::<(AccountId, AccountId, Balance)>(
5555
"Balances", "Transfer",
5656
) {
57-
Some(Ok((_from, _to, value, _fees))) => {
57+
Some(Ok((_from, _to, value))) => {
5858
println!("Balance transfer success: value: {:?}", value)
5959
}
6060
Some(Err(err)) => println!("Failed to decode code hash: {}", err),
61-
None => println!("Failed to find Contracts::CodeStored Event"),
61+
None => println!("Failed to find Balances::Transfer Event"),
6262
}
6363
}
6464
Err(err) => println!("Error: {:?}", err),

0 commit comments

Comments
 (0)