Merge pull request 'fix: lint: Ban waitForTimeout, setTimeout-as-delay, and fixed sleep patterns (#442)' (#443) from fix/issue-442 into master

This commit is contained in:
johba 2026-03-03 23:37:46 +01:00
commit b2594a28b3
25 changed files with 140 additions and 3 deletions

View file

@ -53,6 +53,7 @@ async function waitForReceipt(rpcUrl: string, txHash: string, maxAttempts = 20):
}
return; // status === '0x1' — success
}
// eslint-disable-next-line no-restricted-syntax -- Polling with timeout: no event source for transaction receipt over HTTP RPC (eth_subscribe not available). See AGENTS.md #Engineering Principles.
await new Promise(r => setTimeout(r, 500));
}
throw new Error(`Transaction ${txHash} not mined after ${maxAttempts * 500}ms`);

View file

@ -1,3 +1,4 @@
/* eslint-disable no-restricted-syntax -- waitForTimeout: no event source exists for Vue component animation settling and wagmi wallet connector state transitions. See AGENTS.md #Engineering Principles. */
/**
* Shared wallet helpers for holdout scenarios.
*