developer
developer copied to clipboard
Constant pending of TrustWallet
Hi! I got this error when I approve TokenContract (when I am doing a transaction). With MetaMask extension the same code works fine. How can it be fixed?
Same. Approve on token contract.
const data = contractERC20Token.interface.encodeFunctionData('approve', [
addressContractToApprove, // string
amountToApprove, // bigint
])
const tx = await signer.sendTransaction({
to: contractERC20TokenAddress, // string
data, // string
})
It starts with loading and window keeps loading, sometymes forever and only reinstall extension helps. Although this error appears when doing same transaction again.
Error: Request of type 'PUBLIC_signTransaction' already pending for origin...