I’ve searched for this error and have seen a previous post here, but that seemed to relate to an issue that was fixed back in version .223, so I assume I have something different going wrong here?
I execute the following code in a cloud function:
const options = { chain: 'bsc', address: '0x145D2fEa831f175E4A0aC73893466FD91EE67316' };
const balances = await Moralis.Web3.getAllERC20(options);
And always receive this response:
{"code":141,"error":"Moralis.Web3.getAllERC20 is not a function"}
Any ideas?
Thank you!