Skip to content

Commit

Permalink
fix multi-slash
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Aug 1, 2024
1 parent fd176b6 commit 8164620
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/soroban-cli/src/commands/snapshot/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ impl Cmd {
}

async fn get_history(archive_url: &Uri, ledger: Option<u32>) -> Result<History, Error> {
let archive_url = archive_url.to_string();
let archive_url = archive_url.strip_suffix("/").unwrap_or(&archive_url);
let history_url = if let Some(ledger) = ledger {
let ledger_hex = format!("{ledger:08x}");
let ledger_hex_0 = &ledger_hex[0..=1];
Expand Down

0 comments on commit 8164620

Please sign in to comment.