use __unsafe_increaseBalance to react to batch minting

This commit is contained in:
Hadrien Croubois
2023-06-21 17:56:00 +02:00
parent a3526acdf2
commit 1ed8f9ef2c
6 changed files with 29 additions and 12 deletions

View File

@ -180,17 +180,6 @@ contract('ERC721Consecutive', function (accounts) {
expect(await this.token.$_exists(tokenId)).to.be.equal(true);
expect(await this.token.ownerOf(tokenId), user2);
});
it('reverts burning batches of size != 1', async function () {
const tokenId = batches[0].amount + offset;
const receiver = batches[0].receiver;
await expectRevertCustomError(
this.token.$_afterTokenTransfer(receiver, ZERO_ADDRESS, tokenId, 2),
'ERC721ForbiddenBatchBurn',
[],
);
});
});
});
}