diff --git a/packages/phishing/src/addrcheck.spec.ts b/packages/phishing/src/addrcheck.spec.ts index ac60e6d18..3e9cb1c62 100644 --- a/packages/phishing/src/addrcheck.spec.ts +++ b/packages/phishing/src/addrcheck.spec.ts @@ -35,10 +35,13 @@ async function checkGetWallet (ours: Record, site: string): Pr for (let i = 0; i < 25; i++) { const result = await (await fetch(`https://${site}/get_wallet.php`)).json() as Record; - const wallet = result.wallet.replace('\r', ''); - if (!found.includes(wallet)) { - found.push(wallet); + if (result && result.wallet) { + const wallet = result.wallet.replace('\r', ''); + + if (!found.includes(wallet)) { + found.push(wallet); + } } await delayLoop();