ICO icon indicating copy to clipboard operation
ICO copied to clipboard

Error in contract instance name in getOwner function in index.js

Open adil14788 opened this issue 2 years ago • 2 comments

In the index.js file of my app folder, the getOwner function initializes the instance of the contract as

const nftContract = new Contract(TOKEN_CONTRACT_ADDRESS, TOKEN_CONTRACT_ABI, provider);
const _owner = await tokenContract.owner();

I think the contract name should be

const tokenContract = new Contract(TOKEN_CONTRACT_ADDRESS, TOKEN_CONTRACT_ABI, provider);
const _owner = await tokenContract.owner();

adil14788 avatar Jun 24 '22 06:06 adil14788

@haardikk21 @Sneh1999 @KacieAhmed Any chance y'all can look into this?

yanukadeneth99 avatar Jul 30 '22 08:07 yanukadeneth99

@yanukadeneth99 this was resolved earlier today

haardikk21 avatar Jul 30 '22 11:07 haardikk21