Skip to content

Commit e692635

Browse files
Bashmuntagrandizzy
andauthored
fix(verify): mismatch between strip_prefix and strip_suffix (#12563)
Co-authored-by: grandizzy <[email protected]>
1 parent 72046f8 commit e692635

File tree

1 file changed

+1
-1
lines changed
  • crates/verify/src/etherscan

1 file changed

+1
-1
lines changed

crates/verify/src/etherscan/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl EtherscanVerificationProvider {
282282
let api_url = api_url.trim_end_matches('/');
283283
let base_url = if !is_etherscan {
284284
// If verifier is not Etherscan then set base url as api url without /api suffix.
285-
api_url.strip_prefix("/api").unwrap_or(api_url)
285+
api_url.strip_suffix("/api").unwrap_or(api_url)
286286
} else {
287287
base_url.unwrap_or(api_url)
288288
};

0 commit comments

Comments
 (0)