|
@@ -35,6 +35,10 @@ const INTERFACES = {
|
|
|
'safeTransferFrom(address,address,uint256,uint256,bytes)',
|
|
|
'safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)',
|
|
|
],
|
|
|
+ ERC1155Receiver: [
|
|
|
+ 'onERC1155Received(address,address,uint256,uint256,bytes)',
|
|
|
+ 'onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)',
|
|
|
+ ],
|
|
|
};
|
|
|
|
|
|
const INTERFACE_IDS = {};
|
|
@@ -50,7 +54,7 @@ for (const k of Object.getOwnPropertyNames(INTERFACES)) {
|
|
|
function shouldSupportInterfaces (interfaces = []) {
|
|
|
describe('Contract interface', function () {
|
|
|
beforeEach(function () {
|
|
|
- this.contractUnderTest = this.mock || this.token;
|
|
|
+ this.contractUnderTest = this.mock || this.token || this.holder;
|
|
|
});
|
|
|
|
|
|
for (const k of interfaces) {
|