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:
openhands 2026-03-05 05:53:19 +00:00
parent e6bd236bcc
commit cd459bb9b0
2 changed files with 3 additions and 2 deletions

View file

@ -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