You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The amount what i'm set is ETH which is a wrong option.
let amountA = Web3.Utils.parseToBigUInt(value, units: .eth)!
ERC20 transation amount should be set what it's decimals be,use the below functions:
let amountA = Web3.Utils.parseToBigUInt(value, decimal: X)!
you should replace X with what contract requiered.
Here is my error code & description: -32000 execution reverted
Failed to fetch gas estimate
The text was updated successfully, but these errors were encountered: