Skip to content

Commit

Permalink
Use 2n ** 64n - 1n in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw committed Jul 31, 2023
1 parent f106f03 commit eb76991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/proxy/utils/Initializable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ contract('Initializable', function () {
it('old and new patterns in good sequence', async function () {
const ok = await DisableOk.new();
await expectEvent.inConstruction(ok, 'Initialized', { version: '1' });
await expectEvent.inConstruction(ok, 'Initialized', { version: BigInt('0xFFFFFFFFFFFFFFFF').toString() }); // MAX_UINT64
await expectEvent.inConstruction(ok, 'Initialized', { version: (2n ** 64n - 1n).toString() }); // MAX_UINT64
});
});
});

0 comments on commit eb76991

Please sign in to comment.