From a5f9d9f139a5964d31fdef17ae4a22679cdb0b5f Mon Sep 17 00:00:00 2001 From: Moon Date: Mon, 30 Jan 2023 14:56:42 -0500 Subject: [PATCH] script for supportsInterface --- scripts/supports.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/supports.js diff --git a/scripts/supports.js b/scripts/supports.js new file mode 100644 index 0000000..d96df72 --- /dev/null +++ b/scripts/supports.js @@ -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(); +}