Fix submit_and_watch example (#77)

* fix submit_and_watch

* fix event name
This commit is contained in:
Black3HDF
2020-03-20 00:08:00 +08:00
committed by GitHub
parent f4ef19edc9
commit bee03e25df
+3 -3
View File
@@ -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),