Преглед изворни кода

Update SupportsInterface.behavior.js (#4674)

Co-authored-by: ernestognw <ernestognw@gmail.com>
NiftyMike пре 1 година
родитељ
комит
f627500649

+ 1 - 1
test/token/ERC1155/ERC1155.behavior.js

@@ -896,7 +896,7 @@ function shouldBehaveLikeERC1155([minter, firstTokenHolder, secondTokenHolder, m
       });
     });
 
-    shouldSupportInterfaces(['ERC165', 'ERC1155']);
+    shouldSupportInterfaces(['ERC165', 'ERC1155', 'ERC1155MetadataURI']);
   });
 }
 

+ 1 - 0
test/utils/introspection/SupportsInterface.behavior.js

@@ -26,6 +26,7 @@ const SIGNATURES = {
     'safeTransferFrom(address,address,uint256,uint256,bytes)',
     'safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)',
   ],
+  ERC1155MetadataURI: ['uri(uint256)'],
   ERC1155Receiver: [
     'onERC1155Received(address,address,uint256,uint256,bytes)',
     'onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)',