const Wrapper = artifacts.require("CurioERC1155Wrapper"); const IMastersFedi = artifacts.require("IMastersFedi"); module.exports = async (callback) => { const nftId1 = parseInt(process.argv[6]); const wrapper = await Wrapper.deployed(); const tokenContractAddress1 = await wrapper.contracts(nftId1); const tokenContract1 = await IMastersFedi.at(tokenContractAddress1); const tokenName1 = await tokenContract1.name(); console.log(`Token name: "${tokenName1}"`); const [account,] = await web3.eth.getAccounts(); const whom = process.argv[7] ? process.argv[7] : account; const wrappedBalance1 = await wrapper.balanceOf(whom, nftId1); const tokenBalance1 = await tokenContract1.balanceOf(whom); console.log(`Wrapped: ${wrappedBalance1}`); console.log(`Unwrapped: ${tokenBalance1}`); callback(); }