-
Notifications
You must be signed in to change notification settings - Fork 984
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
Add ENS name resolution to EIP681 support #9563
Conversation
Pull Request Checklist
|
Jenkins BuildsClick to see older builds (21)
|
@yenda @flexsurfer Can you advise on the errors coming from the build log? When I run the tests locally, I see a bunch of warnings but they don't appear to be related to my code. |
@acolytec3 huge kudos for your effort, there is an error during the build
here https://github.com/status-im/status-react/pull/9563/files#diff-09bf352f4017403bdf258a3d90eac06aR134 |
@flexsurfer Thanks! I see the issue. Accidentally reverted one function |
939b790
to
ba35dcd
Compare
@flexsurfer Looks like it builds now. I rebased and squashed so hopefully ready for QA at this point. |
8ccae5f
to
99474b2
Compare
@acolytec3 ISSUE 1) Amount is not parsed from URI (always set to 0)should be reported and fixed separately, as far as I understood from discussion ISSUE 2) [Object object] instead of link when scanning URL with wrong network idcan be fixed later ISSUE 3) ENS name is not resolved when asset is ETHethereum:tanyatest1.eth?value=1e15 is not working (ETH), but ethereum:0x744d70fdbe2ba4cf95131626614a1763df805b9e/transfer?address=tanyatest1.eth&uint256=2e1 (SNT, but the same address) is resolved as expected. All other issues are fixed. |
@3esmit please confirm if issue 3 outlined by @churik is actually an issue? This should return an "invalid address" error as far as I know since part of the original issue that you and I started with was that basic ETH transaction with an ENS to address must have have the |
99474b2
to
a853229
Compare
@churik Also, just fixed issue 2 so please retest when you have a chance. Was populating that error message incorrectly but it's resolved now. Per your comment, issue 1 is not specific to this PR so should be addressed separately. |
Probably it is not an issue, please confirm @3esmit |
Also noticed that the error message shows [Object object] when scanning some invalid ENS. |
a853229
to
f4cc20f
Compare
@3esmit @acolytec3 |
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
f4cc20f
to
2fda266
Compare
huge kudos @acolytec3 ! |
Thanks all for the support. This was a tough one but glad to see it merged! |
Summary
EIP681 URI parsing does not currently support ENS name verification. This PR enables the parse-uri function to accept properly formatted ENS names as the to address in a URI as well enables the QR scanner to properly resolve URIs with an ENS address.
This fixes #9238 and fixes #9357.
Review notes
NA
Testing notes
NA
Platforms
Android
iOS
Areas that maybe impacted
Wallet/Send-Transaction/QR-Code
Functional
wallet / transactions
Non-functional
N/A
Steps to test
Open Status
Open Wallet
Select any account
Select Send
Select specify-recipient
Select 'Scan QR code'
Scan the below QR code.
ethereum:pay-snt.thetoken.eth/transfer?address=unicorn.stateofus.eth&uint256=1e16
Verify that ENS address is resolved to ethereum address and currency changes to SNT.
status: ready