difftreelog
tests: fix bigint equality check
in: master
1 file changed
tests/src/overflow.test.tsdiffbeforeafterboth55 await transferFromExpectSuccess(fungibleCollectionId, 0, bob, alice, charlie, U128_MAX, 'Fungible');55 await transferFromExpectSuccess(fungibleCollectionId, 0, bob, alice, charlie, U128_MAX, 'Fungible');565657 expect(await getFungibleBalance(fungibleCollectionId, charlie.address)).to.equal(U128_MAX);57 expect(await getFungibleBalance(fungibleCollectionId, charlie.address)).to.equal(U128_MAX);58 expect(await getAllowance(fungibleCollectionId, 0, alice.address, bob.address)).to.equal(0n);58 expect((await getAllowance(fungibleCollectionId, 0, alice.address, bob.address)).toString()).to.equal('0');595960 await createFungibleItemExpectSuccess(alice, fungibleCollectionId, { Value: U128_MAX });60 await createFungibleItemExpectSuccess(alice, fungibleCollectionId, { Value: U128_MAX });61 await approveExpectSuccess(fungibleCollectionId, 0, alice, bob, 1n);61 await approveExpectSuccess(fungibleCollectionId, 0, alice, bob, 1n);62 await transferFromExpectFail(fungibleCollectionId, 0, bob, alice, charlie, 1);62 await transferFromExpectFail(fungibleCollectionId, 0, bob, alice, charlie, 1);636364 expect(await getFungibleBalance(fungibleCollectionId, charlie.address)).to.equal(U128_MAX);64 expect(await getFungibleBalance(fungibleCollectionId, charlie.address)).to.equal(U128_MAX);65 expect(await getAllowance(fungibleCollectionId, 0, alice.address, bob.address)).to.equal(0n);65 expect((await getAllowance(fungibleCollectionId, 0, alice.address, bob.address)).toString()).to.equal('1');66 });66 });67});67});6868