trustwallet / developer

Trust Developer documentation: developer.trustwallet.com
https://developer.trustwallet.com
MIT License
314 stars 181 forks source link

Constant pending of TrustWallet #312

Open Aliona-D opened 4 months ago

Aliona-D commented 4 months ago

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

uncleGena commented 3 months ago

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