trustwallet / wallet-core

Cross-platform, cross-blockchain wallet library.
https://developer.trustwallet.com/wallet-core
Apache License 2.0
2.77k stars 1.56k forks source link

TrustWallet popup stuck in loading state on token approve #3734

Closed uncleGena closed 5 months ago

uncleGena commented 6 months ago

Describe the bug When executing approve on token contract, it starts popup with stacked loader. Problem is that this loader stacks and never disappears.

To Reproduce

  1. ethers.js v6.11.1
  2. trustwallet/web3-react-trust-wallet
  3. chain: BSC Testnet (Binance Chain Testnet)
  4. custom token:
    • address: 0x8eB171BAc8b42D85d2fE9AAA18B2dD62ef186126
    • symbol: PATEX
const data = contractERC20Token.interface.encodeFunctionData('approve', [
  addressContractToApprove, // string
  amountToApprove, // bigint
])

const tx = await signer.sendTransaction({
  to: contractERC20TokenAddress, // string
  data, // string
})

Expected behavior Open window with transaction info and buttons.

Screenshots

image

Additional context Sometimes loader stuck forever and only reinstalling extension helps. Here similar bug report.

Pasha8914 commented 5 months ago

https://github.com/wevm/wagmi/issues/3718

same issue but with wagmi

Pasha8914 commented 5 months ago

@hewigovens @Milerius

dan1kov commented 5 months ago

same problem

satoshiotomakan commented 5 months ago

Hi @uncleGena, thank you for the report @stylianos-panagakos would you be able to check what can be the problem?

DaStepn commented 5 months ago

Hi @uncleGena, we are investigating the issue at the moment and will provide ETA for hotfix release tomorrow.

DaStepn commented 5 months ago

Hi @uncleGena, we are investigating the issue at the moment and will provide ETA for hotfix release tomorrow.

Follow up, the fix is available for regression testing by QA team so a rough ETA for CWS submission is either Monday or Tuesday.

Update: Submitted for approval on CWS today. Follow up: 2.9.3 has been published.

Milerius commented 5 months ago

This issue is not related to the wallet core repository, please create a ticket here if u believe there is a bug in the application: https://support.trustwallet.com/en/support/tickets/new