Update bigtable confirm to use confirmation_status (#14750)

This commit is contained in:
Tyera Eulberg 2021-01-21 13:36:11 -07:00 committed by GitHub
parent ca7914aa3d
commit ca95302038
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -106,14 +106,15 @@ async fn confirm(signature: &Signature, verbose: bool) -> Result<(), Box<dyn std
" ", " ",
); );
} }
Ok(None) => println!("Confirmed transaction details not available"), Ok(None) => println!("Finalized transaction details not available"),
Err(err) => println!("Unable to get confirmed transaction details: {}", err), Err(err) => println!("Unable to get finalized transaction details: {}", err),
} }
println!(); println!();
} }
match transaction_status.status { if let Some(err) = &transaction_status.err {
Ok(_) => println!("Confirmed"), println!("Transaction failed: {}", err);
Err(err) => println!("Transaction failed: {}", err), } else {
println!("{:?}", transaction_status.confirmation_status());
} }
Ok(()) Ok(())
} }