Rename ERC1155InsufficientApprovalForAll to ERC1155MissingApprovalForAll (#4381)
This commit is contained in:
@ -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],
|
||||
);
|
||||
});
|
||||
|
||||
@ -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],
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user