Skip to content

Commit

Permalink
use safe ints
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudren committed Aug 15, 2023
1 parent c772716 commit f999503
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions client/src/tests/eth/getFilterChanges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
6 changes: 2 additions & 4 deletions client/src/tests/eth/getLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit f999503

Please sign in to comment.