Update bigtable confirm to use confirmation_status (#14750)
This commit is contained in:
parent
ca7914aa3d
commit
ca95302038
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue