script for supportsInterface

This commit is contained in:
Moon Man 2023-01-30 14:56:42 -05:00
parent bd2cb5aea9
commit a5f9d9f139
1 changed files with 12 additions and 0 deletions

12
scripts/supports.js Normal file
View File

@ -0,0 +1,12 @@
const Wrapper = artifacts.require("CurioERC1155Wrapper");
const interfaceId = process.argv[6];
module.exports = async (callback) => {
const wrapper = await Wrapper.deployed();
const supports = await wrapper.supportsInterface(interfaceId);
console.log(`Supports interface: ${supports}`);
callback();
}