From 9cb26f11a49cd0e2eb6f12e48f51940f3bfab8ef Mon Sep 17 00:00:00 2001 From: James Pepper Date: Wed, 27 May 2026 18:28:32 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 7: Use of externally-controlled format string Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/lib/blockchain-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/blockchain-api.ts b/src/lib/blockchain-api.ts index 660b3bf..c9c15c5 100644 --- a/src/lib/blockchain-api.ts +++ b/src/lib/blockchain-api.ts @@ -210,7 +210,7 @@ export async function getHistoricalPriceRange(days: number, currency: Currency): }, {}, 3600); return data.prices || []; } catch (error) { - console.error(`Failed to fetch historical price range for ${days} days:`, error); + console.error('Failed to fetch historical price range for %s days:', String(days), error); return []; } }