From f999503092a10f2b409b5cc733db065c124e56e5 Mon Sep 17 00:00:00 2001 From: Nikki Gaudreau Date: Tue, 15 Aug 2023 15:03:44 -0400 Subject: [PATCH] use safe ints --- client/src/tests/eth/getFilterChanges.ts | 6 ++---- client/src/tests/eth/getLogs.ts | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/client/src/tests/eth/getFilterChanges.ts b/client/src/tests/eth/getFilterChanges.ts index c589a90..9e50c2a 100644 --- a/client/src/tests/eth/getFilterChanges.ts +++ b/client/src/tests/eth/getFilterChanges.ts @@ -66,10 +66,8 @@ describe("getFilterChanges", () => { it("doesn't return events outside of block range", async () => { const filter = await wallet.public.createEventFilter({ - fromBlock: - 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffen, - toBlock: - 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn, + fromBlock: 0x01ffffffffffffen, + toBlock: 0x01fffffffffffffn, }); try { const call = await contract0.write.logSomething([1234n]); diff --git a/client/src/tests/eth/getLogs.ts b/client/src/tests/eth/getLogs.ts index 5299a4d..4f205fc 100644 --- a/client/src/tests/eth/getLogs.ts +++ b/client/src/tests/eth/getLogs.ts @@ -68,10 +68,8 @@ describe("getLogs", () => { await blockchain.test.mine({ blocks: 1 }); await wallet.public.waitForTransactionReceipt({ hash: call }); const logs = await wallet.public.getLogs({ - fromBlock: - 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffen, - toBlock: - 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn, + fromBlock: 0x01ffffffffffffen, + toBlock: 0x01fffffffffffffn, }); assert.equal(logs.length, 0); });