0.7.29
This commit is contained in:
@@ -199,7 +199,7 @@ fn parse_accounts_json(accounts_json: &str) -> std::vec::Vec<std::string::String
|
||||
accounts.push(text.to_string());
|
||||
continue;
|
||||
}
|
||||
if let Some(pubkey) = item.get("pubkey").and_then(|value| value.as_str()) {
|
||||
if let Some(pubkey) = item.get("pubkey").and_then(|value| return value.as_str()) {
|
||||
accounts.push(pubkey.to_string());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,12 +177,12 @@ fn build_program_instruction_discriminator_summaries(
|
||||
});
|
||||
}
|
||||
summaries.sort_by(|left, right| {
|
||||
right
|
||||
return right
|
||||
.undecoded_occurrence_count
|
||||
.cmp(&left.undecoded_occurrence_count)
|
||||
.then(right.transaction_count.cmp(&left.transaction_count))
|
||||
.then(right.occurrence_count.cmp(&left.occurrence_count))
|
||||
.then(right.latest_instruction_id.cmp(&left.latest_instruction_id))
|
||||
.then(right.latest_instruction_id.cmp(&left.latest_instruction_id));
|
||||
});
|
||||
return Ok(summaries);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user