From cb1f9a326f37bcf65ea7d45cbf1acc064ea1f3d6 Mon Sep 17 00:00:00 2001 From: Bashmunta Date: Fri, 14 Nov 2025 10:50:56 +0200 Subject: [PATCH] fix(verify): mismatch between strip_prefix and strip_suffix --- crates/verify/src/etherscan/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/verify/src/etherscan/mod.rs b/crates/verify/src/etherscan/mod.rs index 60f8daf962adf..16b1ccea02bda 100644 --- a/crates/verify/src/etherscan/mod.rs +++ b/crates/verify/src/etherscan/mod.rs @@ -281,7 +281,7 @@ impl EtherscanVerificationProvider { let api_url = api_url.trim_end_matches('/'); let base_url = if !is_etherscan { // If verifier is not Etherscan then set base url as api url without /api suffix. - api_url.strip_prefix("/api").unwrap_or(api_url) + api_url.strip_suffix("/api").unwrap_or(api_url) } else { base_url.unwrap_or(api_url) };