fix: correct buyKrk call sites for new opts param, add eslint-disable for polling loop
- no-dilution.spec.ts: pass undefined for opts, screenshotPrefix as 4th arg - swap.ts: add eslint-disable-next-line for eth_getFilterLogs polling delay
This commit is contained in:
parent
e6bd236bcc
commit
cd459bb9b0
2 changed files with 3 additions and 2 deletions
|
|
@ -154,6 +154,7 @@ export async function buyKrk(page: Page, ethAmount: string, opts?: BuyKrkOptions
|
|||
console.log(`[swap] Transfer event received (${logs.length} log(s))`);
|
||||
break;
|
||||
}
|
||||
// eslint-disable-next-line no-restricted-syntax -- Polling with timeout: eth_getFilterLogs is HTTP-only polling (not push). See AGENTS.md #Engineering Principles.
|
||||
await new Promise(r => setTimeout(r, 200));
|
||||
}
|
||||
// Clean up filter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue