developer icon indicating copy to clipboard operation
developer copied to clipboard

Constant pending of TrustWallet

Open Aliona-D opened this issue 1 year ago • 1 comments

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? Error_TrustWallet

Aliona-D avatar Feb 28 '24 12:02 Aliona-D

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...

uncleGena avatar Mar 13 '24 14:03 uncleGena