metamask-mobile icon indicating copy to clipboard operation
metamask-mobile copied to clipboard

How to handle reject approve method in metamask mobile?

Open liyueran-bj opened this issue 2 years ago • 2 comments

Describe the bug The exception message could not be caught when the Metamask mobile user rejected 'approve'; But the PC is normal: MetaMask - RPC Error: Error: MetaMask Tx Signature: User denied transaction signature.

Screenshots try{ const contract = new ethers.Contract(TOKEN_ADDRESS, ERC20.abi, jsonRpcProvider); // code 1 const tx = await contract.approve(CONTRACT_ADDRESS, num); // code 2 await tx.wait(); }catch(err){ console.log(err); // unable to work code 3 }

To Reproduce Steps to reproduce the behavior

  1. Click on 'approve'
  2. Click on 'rejected'
  3. The program will get stuck at code 2

Expected behavior A clear and concise description of what you expected to happen It can execute normally, just like on PC

Smartphone (please complete the following information):

  • Device: [e.g. iPhone7P&iPhone8P]
  • OS: [e.g. iOS15&IOS16]
  • App Version [e.g. 5.3.0]

to be added after bug submission by internal support / PM Severity

  • How critical is the impact of this bug on a user?
  • Add stats if available on % of customers impacted
  • Is this visible to all users?
  • Is this tech debt?

liyueran-bj avatar Jul 21 '22 02:07 liyueran-bj

same here

Sotatek-HiepNguyen2 avatar Aug 08 '22 04:08 Sotatek-HiepNguyen2

Experiencing this issue too.

brad-playdon avatar Sep 19 '22 13:09 brad-playdon

How to solve?

LYD4C avatar Sep 27 '22 15:09 LYD4C

Same here, any update on this issue

HatimPatwa avatar Oct 04 '22 09:10 HatimPatwa

Same issue, any news?

LucaTrip avatar Oct 14 '22 14:10 LucaTrip

same here

egorbond31 avatar Oct 27 '22 10:10 egorbond31

Same!

cvetlicnifractional avatar Dec 13 '22 23:12 cvetlicnifractional

Same!

Sotatek-DinhTran2 avatar Dec 15 '22 03:12 Sotatek-DinhTran2

same!

Sotatek-SonNguyen2 avatar Dec 29 '22 08:12 Sotatek-SonNguyen2

Same!

belova412 avatar Jan 13 '23 08:01 belova412

This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 7 days. Thank you for your contributions.

github-actions[bot] avatar Jul 17 '23 18:07 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity. If you feel this was closed in error please reopen and provide evidence on the current production app. Thank you for your contributions.

github-actions[bot] avatar Jul 24 '23 20:07 github-actions[bot]

Still a problem

amarpathak avatar Aug 23 '23 09:08 amarpathak