parent
7fee0bc69c
commit
f5c564bc6c
@ -1639,9 +1639,7 @@ fn send_and_confirm_transactions_with_spinner<T: Signers>(
|
|||||||
for pending_signatures_chunk in
|
for pending_signatures_chunk in
|
||||||
pending_signatures.chunks(MAX_GET_SIGNATURE_STATUSES_QUERY_ITEMS)
|
pending_signatures.chunks(MAX_GET_SIGNATURE_STATUSES_QUERY_ITEMS)
|
||||||
{
|
{
|
||||||
if let Ok(result) =
|
if let Ok(result) = rpc_client.get_signature_statuses(pending_signatures_chunk) {
|
||||||
rpc_client.get_signature_statuses_with_history(pending_signatures_chunk)
|
|
||||||
{
|
|
||||||
let statuses = result.value;
|
let statuses = result.value;
|
||||||
for (signature, status) in
|
for (signature, status) in
|
||||||
pending_signatures_chunk.iter().zip(statuses.into_iter())
|
pending_signatures_chunk.iter().zip(statuses.into_iter())
|
||||||
|
@ -1078,8 +1078,9 @@ fn test_cli_program_show() {
|
|||||||
max_len: Some(max_len),
|
max_len: Some(max_len),
|
||||||
});
|
});
|
||||||
config.output_format = OutputFormat::JsonCompact;
|
config.output_format = OutputFormat::JsonCompact;
|
||||||
|
let min_slot = rpc_client.get_slot().unwrap();
|
||||||
process_command(&config).unwrap();
|
process_command(&config).unwrap();
|
||||||
let slot = rpc_client.get_slot().unwrap();
|
let max_slot = rpc_client.get_slot().unwrap();
|
||||||
|
|
||||||
// Verify show
|
// Verify show
|
||||||
config.signers = vec![&keypair];
|
config.signers = vec![&keypair];
|
||||||
@ -1132,7 +1133,8 @@ fn test_cli_program_show() {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.as_u64()
|
.as_u64()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
assert_eq!(slot, deployed_slot);
|
assert!(deployed_slot >= min_slot);
|
||||||
|
assert!(deployed_slot <= max_slot);
|
||||||
let data_len = json
|
let data_len = json
|
||||||
.as_object()
|
.as_object()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user