1inch v0.0.30 error on checking allowance

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?

can. you give an example with exact parameters for that function?

After a discussion in DM it seems that the problem is fixed by using WBNB instead of BNB