Skip to content
Prev Previous commit
Next Next commit
update
  • Loading branch information
Amxx committed Mar 26, 2024
commit 5d87da3c63568e44a23220a1e6cf79a0dd438fe8
2 changes: 1 addition & 1 deletion test/utils/SlotDerivation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('SlotDerivation', function () {
it('offset', async function () {
const base = generators.bytes32();
const offset = generators.uint256();
expect(await this.mock.$offset(base, offset)).to.equal((ethers.toBigInt(base) + offset) % 2n ** 256n);
expect(await this.mock.$offset(base, offset)).to.equal((ethers.toBigInt(base) + offset) & ethers.MaxUint256);
});

it('array', async function () {
Expand Down