this is returning one error or another
header.ts initializes moralis
ngOnInit(): void {
Moralis.initialize("***");
Moralis.serverURL = '***';
this.init();
}
this returns some error code or another
Cannot read properties of undefined (reading ‘appId’) when I include start
Web3Api not initialized, run Moralis.start() first
when I use await Moralis.enable();
Moralis.enable() is deprecated and will be removed, use Moralis.enableWeb3()
you guys just told use to use Moralis.enable a month ago, now it’s enableWeb3?
public GET_AUCTION_NFTS(): Promise<any>{
return new Promise(async (resolve, reject)=>{
try {
await Moralis.start()
const options = { chain: '0x61', address:TEASHOP, token_address: NFT };
const NFTS = await Moralis.Web3API.account.getNFTsForContract(options);
//console.log(NFTS);
resolve(NFTS.result);
} catch (error) {
console.log(error);
}
})
}