Rename ERC1155InsufficientApprovalForAll to ERC1155MissingApprovalForAll (#4381)

This commit is contained in:
Ernesto García
2023-06-26 06:20:01 -06:00
committed by GitHub
parent cb4bf950df
commit 8cab922347
5 changed files with 9 additions and 9 deletions

View File

@ -254,7 +254,7 @@ function shouldBehaveLikeERC1155([minter, firstTokenHolder, secondTokenHolder, m
this.token.safeTransferFrom(multiTokenHolder, recipient, firstTokenId, firstAmount, '0x', {
from: proxy,
}),
'ERC1155InsufficientApprovalForAll',
'ERC1155MissingApprovalForAll',
[proxy, multiTokenHolder],
);
});
@ -609,7 +609,7 @@ function shouldBehaveLikeERC1155([minter, firstTokenHolder, secondTokenHolder, m
'0x',
{ from: proxy },
),
'ERC1155InsufficientApprovalForAll',
'ERC1155MissingApprovalForAll',
[proxy, multiTokenHolder],
);
});

View File

@ -38,7 +38,7 @@ contract('ERC1155Burnable', function (accounts) {
it("unapproved accounts cannot burn the holder's tokens", async function () {
await expectRevertCustomError(
this.token.burn(holder, tokenIds[0], amounts[0].subn(1), { from: other }),
'ERC1155InsufficientApprovalForAll',
'ERC1155MissingApprovalForAll',
[other, holder],
);
});
@ -63,7 +63,7 @@ contract('ERC1155Burnable', function (accounts) {
it("unapproved accounts cannot burn the holder's tokens", async function () {
await expectRevertCustomError(
this.token.burnBatch(holder, tokenIds, [amounts[0].subn(1), amounts[1].subn(2)], { from: other }),
'ERC1155InsufficientApprovalForAll',
'ERC1155MissingApprovalForAll',
[other, holder],
);
});