-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix QR send #1916
Fix QR send #1916
Conversation
app/core/DeeplinkManager.js
Outdated
urlObj.set('protocol', 'https:'); | ||
this.handleBrowserUrl(urlObj.href, browserCallBack); | ||
break; | ||
|
||
// Specific to the MetaMask app | ||
// For ex. go to settings | ||
case 'metamask': | ||
onHandled && onHandled(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we could consolodate these into a single method? eg:
const handle = () => onHandled && onHandled();
and then just call that?
All scenarios look good to me 👍 There's just 2 instances where I noticed we don't provide any feedback and just keep you on the send to screen:
Do we want to do anything in this regard @andrepimenta @omnat @cjeria This is what we currently do if a user is on the wallet screen and they scan such things:
Perhaps we send them to wallet with this messaging and continue from there? |
"cancelled": "Cancelled", | ||
"tokenContractAddressWarning": "WARNING: This address is a token contract address. If you send tokens to this address, you will lose them.", | ||
"smartContractAddressWarning": "WARNING: This address is a smart contract address. Please make sure you understand what this address is for, otherwise you risk losing your funds.", | ||
"continueError": "I understand the risks, continue" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
es.json
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added!
@andrepimenta @cjeria based off of our discussion in team standup, could we remove the warning when user enters just a contract address (which isn't a token address)? |
@@ -78,12 +78,15 @@ class DeeplinkManager { | |||
} | |||
} | |||
|
|||
const handled = () => onHandled?.(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update looks good on both OS's 👍
# Conflicts: # app/core/DeeplinkManager.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest fixes look good 👍
* Fix QR send * Working for more types * More comments * Remove unnecessary export * Warning for smart and token address * Fixes and new warning info adjustments * Remove comment * Add comments * Show error for erc721 and erc20 * Fix bold style
Description
PR that fixes QR code send flow: