metamask-mobile
metamask-mobile copied to clipboard
How to handle reject approve method in metamask mobile?
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
- Click on 'approve'
- Click on 'rejected'
- 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?
same here
Experiencing this issue too.
How to solve?
Same here, any update on this issue
Same issue, any news?
same here
Same!
Same!
same!
Same!
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.
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.
Still a problem