mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-22 03:36:18 +00:00
Fix submit_and_watch example (#77)
* fix submit_and_watch * fix event name
This commit is contained in:
1 parent
f4ef19edc9
commit
bee03e25df
1 file changed
+3
-3
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user