Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into bump-bot-version-stri…
Browse files Browse the repository at this point in the history
…ct-carrot-version
  • Loading branch information
Buckram123 committed Apr 29, 2024
2 parents c026b47 + 3ec0c98 commit 860a1a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bot/src/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,12 @@ mod utils {

contract_addrs.append(&mut contracts);
match next_pagination {
Some(page_response) => pagination = Some(next_page_request(page_response)),
// `next_key` can still be empty, meaning there are no next key
Some(page_response) if !page_response.next_key.is_empty() => {
pagination = Some(next_page_request(page_response))
}
// Done with pagination can return out all of the contracts
None => {
_ => {
log!(Level::Info, "Savings addrs({version}): {contract_addrs:?}");
break anyhow::Ok(contract_addrs);
}
Expand Down

0 comments on commit 860a1a7

Please sign in to comment.