Contract page: verification state from env VERIFIED_SOURCIFY / VERIFIED_POLYGONSCAN (was hard-coded sourcify false, while Sourcify has an exact match since 2026-11-14 21:35 UTC). smoke 194/194

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 10:20:41 -06:00
parent 74657f878c
commit 56316c0139
+1 -1
View File
@@ -63,7 +63,7 @@ let cCache = null;
async function contract() {
if (cCache && Date.now() - cCache.at < 300000) return cCache.v;
const v = { address: C.contractAddress || null, chainId: C.chainId, explorer: C.explorer, split: { levels: 5, levelPct: 10, companyPct: 50, maxDepth: 20 },
boost: { usd: C.boost.usd, views: C.boost.views }, verified: { sourcify: false, polygonscan: 'pending', sourcifyUrl: C.contractAddress ? 'https://repo.sourcify.dev/' + C.chainId + '/' + C.contractAddress : null },
boost: { usd: C.boost.usd, views: C.boost.views }, verified: { sourcify: process.env.VERIFIED_SOURCIFY === '1', polygonscan: process.env.VERIFIED_POLYGONSCAN === '1' ? true : 'pending', sourcifyUrl: C.contractAddress ? 'https://repo.sourcify.dev/' + C.chainId + '/' + C.contractAddress : null },
ownerNote: "Marty's Tangem hardware wallet", live: false };
if (shop && shop.watching()) {
const { Interface } = require('ethers');