before, v0.0.27 this code is working well.
const res = await dex.hasAllowance({
chain: 'bsc', // The blockchain you want to use (eth/bsc/polygon)
fromTokenAddress: tokenIn.address, // The token you want to swap
fromAddress: user && user.attributes.accounts[0], // Your wallet address
amount: Moralis.Units.Token(valueTokenIn, tokenIn.decimals).toString(),
})
but now it says
Error: Something went wrong
{
āmessageā: āInvalid web3 callā,
ācodeā: 141
}
at eval (MoralisWeb3.js?22fb:925:1)
at tryCatch (runtime.js?c56e:63:16)
at Generator.invoke [as _invoke] (runtime.js?c56e:294:1)
at Generator.eval [as next] (runtime.js?c56e:119:1)
at asyncGeneratorStep (asyncToGenerator.js?4ec9:5:1)
at _next (asyncToGenerator.js?4ec9:27:1)
What are changes with the new version?