Skip to content
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 for EIP681 URIs and support in QR code scanner #9240

Closed
wants to merge 6 commits into from

Conversation

acolytec3
Copy link
Contributor

@acolytec3 acolytec3 commented Oct 19, 2019

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
    QR code

  • Verify that ENS address is resolved to ethereum address and currency changes to SNT.

status: ready

@acolytec3 acolytec3 requested a review from a team as a code owner October 19, 2019 01:37
@ghost
Copy link

ghost commented Oct 19, 2019

Pull Request Checklist

  • Docs: Updated the documentation, if affected
  • Docs: Added or updated inline comments explaining intention of the code
  • Tests: Ensured that all new UI elements have been assigned accessibility IDs
  • Tests: Signaled need for E2E tests with label, if applicable
  • Tests: Briefly described what was tested and what platforms were used
  • UI: In case of UI changes, ensured that UI matches Figma
  • UI: In case of UI changes, requested review from a Core UI designer
  • UI: In case of UI changes, included screenshots of implementation

@status-im-auto
Copy link
Member

status-im-auto commented Oct 19, 2019

Jenkins Builds

Click to see older builds (135)
Commit #️⃣ Finished (UTC) Duration Platform Result
17ef6a8 #1 2019-10-19 01:47:42 ~10 min ios 📄log
17ef6a8 #1 2019-10-19 01:49:04 ~11 min android-e2e 📄log
17ef6a8 #1 2019-10-19 01:49:27 ~11 min android 📄log
17ef6a8 #1 2019-10-19 01:51:33 ~13 min macos 📄log
17ef6a8 #1 2019-10-19 01:51:53 ~14 min linux 📄log
17ef6a8 #1 2019-10-19 01:52:53 ~15 min windows 📄log
57af3ab #2 2019-10-19 22:40:58 ~11 min android 📄log
57af3ab #2 2019-10-19 22:41:06 ~11 min ios 📄log
57af3ab #2 2019-10-19 22:42:30 ~13 min android-e2e 📄log
57af3ab #2 2019-10-19 22:42:52 ~13 min linux 📄log
57af3ab #2 2019-10-19 22:43:09 ~13 min windows 📄log
57af3ab #2 2019-10-19 22:44:59 ~15 min macos 📄log
086e2de #3 2019-10-23 19:44:27 ~10 min ios 📄log
086e2de #3 2019-10-23 19:45:28 ~11 min android 📄log
086e2de #3 2019-10-23 19:46:01 ~11 min macos 📄log
086e2de #3 2019-10-23 19:46:13 ~12 min android-e2e 📄log
086e2de #3 2019-10-23 19:47:42 ~13 min linux 📄log
086e2de #3 2019-10-23 19:47:59 ~13 min windows 📄log
9d70fca #4 2019-10-23 20:20:23 ~10 min ios 📄log
9d70fca #4 2019-10-23 20:20:56 ~10 min macos 📄log
9d70fca #4 2019-10-23 20:21:08 ~11 min android-e2e 📄log
9d70fca #4 2019-10-23 20:21:15 ~11 min android 📄log
9d70fca #4 2019-10-23 20:23:40 ~13 min linux 📄log
9d70fca #4 2019-10-23 20:23:54 ~13 min windows 📄log
9d70fca #5 2019-10-29 13:37:11 ~11 min android-e2e 📄log
✔️ 2290cdf #5 2019-10-30 01:06:54 ~10 min ios 📦ipa 📲
✔️ 2290cdf #6 2019-10-30 01:07:56 ~11 min android-e2e 📦apk 📲
✔️ 2290cdf #5 2019-10-30 01:09:10 ~12 min macos 📦dmg
✔️ 2290cdf #5 2019-10-30 01:09:34 ~12 min android 📦apk 📲
✔️ 2290cdf #5 2019-10-30 01:10:53 ~13 min linux 📦App
✔️ 2290cdf #5 2019-10-30 01:11:46 ~14 min windows 📦exe
e9f70d2 #6 2019-11-02 10:47:07 ~10 min ios 📄log
e9f70d2 #6 2019-11-02 10:47:46 ~10 min android 📄log
e9f70d2 #6 2019-11-02 10:48:39 ~11 min macos 📄log
e9f70d2 #7 2019-11-02 10:48:53 ~12 min android-e2e 📄log
e9f70d2 #6 2019-11-02 10:50:09 ~13 min linux 📄log
e9f70d2 #6 2019-11-02 10:50:28 ~13 min windows 📄log
72fd6c8 #7 2019-11-02 21:24:43 ~9 min ios 📄log
72fd6c8 #7 2019-11-02 21:26:00 ~10 min android 📄log
72fd6c8 #8 2019-11-02 21:26:19 ~11 min android-e2e 📄log
72fd6c8 #7 2019-11-02 21:27:13 ~11 min macos 📄log
72fd6c8 #7 2019-11-02 21:28:14 ~12 min linux 📄log
72fd6c8 #7 2019-11-02 21:28:28 ~12 min windows 📄log
b1496f0 #8 2019-11-02 22:15:41 ~8 min ios 📄log
b1496f0 #9 2019-11-02 22:17:43 ~10 min android-e2e 📄log
b1496f0 #8 2019-11-02 22:18:14 ~10 min android 📄log
b1496f0 #8 2019-11-02 22:19:05 ~11 min macos 📄log
b1496f0 #8 2019-11-02 22:20:17 ~12 min linux 📄log
b1496f0 #8 2019-11-02 22:20:21 ~12 min windows 📄log
e657c0b #9 2019-11-02 22:43:17 ~9 min ios 📄log
e657c0b #9 2019-11-02 22:44:53 ~10 min android 📄log
e657c0b #10 2019-11-02 22:44:54 ~10 min android-e2e 📄log
e657c0b #9 2019-11-02 22:46:07 ~11 min macos 📄log
e657c0b #9 2019-11-02 22:47:25 ~13 min linux 📄log
e657c0b #9 2019-11-02 22:47:35 ~13 min windows 📄log
ec55954 #10 2019-11-03 11:24:47 ~9 min ios 📄log
✔️ ec55954 #10 2019-11-03 11:26:25 ~10 min android 📦apk 📲
✔️ ec55954 #11 2019-11-03 11:27:20 ~11 min android-e2e 📦apk 📲
✔️ ec55954 #10 2019-11-03 11:27:46 ~12 min macos 📦dmg
✔️ ec55954 #10 2019-11-03 11:29:11 ~13 min linux 📦App
✔️ ec55954 #10 2019-11-03 11:29:15 ~13 min windows 📦exe
✔️ 9286448 #11 2019-11-06 21:04:42 ~11 min android 📦apk 📲
✔️ 9286448 #12 2019-11-06 21:05:31 ~11 min android-e2e 📦apk 📲
✔️ 9286448 #11 2019-11-06 21:05:52 ~11 min macos 📦dmg
✔️ 9286448 #11 2019-11-06 21:06:56 ~13 min ios 📦ipa 📲
✔️ 9286448 #11 2019-11-06 21:08:11 ~14 min linux 📦App
✔️ 9286448 #11 2019-11-06 21:08:29 ~14 min windows 📦exe
✔️ 1e0228b #12 2019-11-07 11:23:23 ~9 min ios 📦ipa 📲
✔️ 1e0228b #12 2019-11-07 11:24:38 ~10 min android 📦apk 📲
✔️ 1e0228b #13 2019-11-07 11:24:44 ~11 min android-e2e 📦apk 📲
✔️ 1e0228b #12 2019-11-07 11:26:04 ~12 min macos 📦dmg
✔️ 1e0228b #12 2019-11-07 11:27:38 ~13 min linux 📦App
✔️ 1e0228b #12 2019-11-07 11:27:53 ~13 min windows 📦exe
✔️ 3537af2 #13 2019-11-08 10:57:49 ~9 min ios 📦ipa 📲
✔️ 3537af2 #14 2019-11-08 11:01:27 ~13 min android-e2e 📦apk 📲
✔️ 3537af2 #13 2019-11-08 11:02:03 ~13 min android 📦apk 📲
✔️ 3537af2 #13 2019-11-08 11:02:24 ~13 min linux 📦App
✔️ 3537af2 #13 2019-11-08 11:04:38 ~15 min macos 📦dmg
e6faf00 #14 2019-11-10 03:18:04 ~18 sec android 📄log
e6faf00 #14 2019-11-10 03:18:05 ~15 sec ios 📄log
e6faf00 #14 2019-11-10 03:18:08 ~15 sec linux 📄log
e6faf00 #14 2019-11-10 03:18:11 ~14 sec macos 📄log
e6faf00 #14 2019-11-10 03:18:16 ~16 sec windows 📄log
e6faf00 #15 2019-11-10 03:19:36 ~1 min android-e2e 📄log
✔️ a42aff1 #15 2019-11-10 03:45:33 ~9 min ios 📦ipa 📲
✔️ a42aff1 #16 2019-11-10 03:46:28 ~10 min android-e2e 📦apk 📲
✔️ a42aff1 #15 2019-11-10 03:46:37 ~10 min android 📦apk 📲
✔️ a42aff1 #15 2019-11-10 03:47:52 ~12 min macos 📦dmg
✔️ a42aff1 #15 2019-11-10 03:49:30 ~13 min linux 📦App
✔️ a42aff1 #15 2019-11-10 03:49:58 ~14 min windows 📦exe
✔️ de4bf77 #16 2019-11-11 02:51:15 ~9 min ios 📦ipa 📲
✔️ de4bf77 #16 2019-11-11 02:52:18 ~10 min android 📦apk 📲
✔️ de4bf77 #17 2019-11-11 02:53:10 ~11 min android-e2e 📦apk 📲
✔️ de4bf77 #16 2019-11-11 02:53:59 ~12 min macos 📦dmg
✔️ de4bf77 #16 2019-11-11 02:55:10 ~13 min linux 📦App
✔️ de4bf77 #16 2019-11-11 02:55:33 ~13 min windows 📦exe
✔️ 1cdfff0 #17 2019-11-11 15:11:59 ~8 min ios 📦ipa 📲
✔️ 1cdfff0 #18 2019-11-11 15:14:02 ~10 min android-e2e 📦apk 📲
✔️ 1cdfff0 #17 2019-11-11 15:14:32 ~11 min android 📦apk 📲
✔️ 1cdfff0 #17 2019-11-11 15:16:05 ~12 min macos 📦dmg
✔️ 1cdfff0 #17 2019-11-11 15:16:56 ~13 min linux 📦App
✔️ 1cdfff0 #17 2019-11-11 15:17:16 ~13 min windows 📦exe
✔️ 16164e8 #18 2019-11-14 15:04:39 ~10 min ios 📦ipa 📲
✔️ 16164e8 #19 2019-11-14 15:08:11 ~13 min android-e2e 📦apk 📲
✔️ 16164e8 #18 2019-11-14 15:10:29 ~15 min linux 📦App
✔️ 16164e8 #18 2019-11-14 15:10:35 ~16 min macos 📦dmg
✔️ 16164e8 #18 2019-11-14 15:11:06 ~16 min windows 📦exe
✔️ 16164e8 #18 2019-11-14 15:12:43 ~17 min android 📦apk 📲
✔️ 0e1d7ec #19 2019-11-21 01:22:51 ~10 min ios 📦ipa 📲
✔️ 0e1d7ec #20 2019-11-21 01:24:08 ~11 min android-e2e 📦apk 📲
✔️ 0e1d7ec #19 2019-11-21 01:24:32 ~11 min android 📦apk 📲
✔️ 0e1d7ec #19 2019-11-21 01:25:21 ~12 min macos 📦dmg
✔️ 0e1d7ec #19 2019-11-21 01:25:34 ~12 min linux 📦App
✔️ 0e1d7ec #19 2019-11-21 01:28:19 ~15 min windows 📦exe
✔️ 920a855 #20 2019-11-21 20:53:06 ~8 min ios 📦ipa 📲
✔️ 920a855 #20 2019-11-21 20:56:43 ~11 min android 📦apk 📲
✔️ 920a855 #21 2019-11-21 20:56:49 ~12 min android-e2e 📦apk 📲
✔️ 920a855 #20 2019-11-21 20:58:20 ~13 min macos 📦dmg
✔️ 920a855 #20 2019-11-21 20:58:53 ~13 min linux 📦App
✔️ 920a855 #20 2019-11-21 20:59:44 ~14 min windows 📦exe
359fed5 #21 2019-11-26 03:00:41 ~4 min ios 📄log
✔️ 359fed5 #21 2019-11-26 03:08:19 ~12 min android 📦apk 📲
✔️ 359fed5 #22 2019-11-26 03:08:56 ~12 min android-e2e 📦apk 📲
✔️ 359fed5 #21 2019-11-26 03:09:46 ~13 min linux 📦App
✔️ 359fed5 #21 2019-11-26 03:10:17 ~13 min windows 📦exe
✔️ 359fed5 #21 2019-11-26 03:10:33 ~14 min macos 📦dmg
1d5f4b4 #22 2019-11-26 11:27:58 ~3 min ios 📄log
✔️ 1d5f4b4 #23 2019-11-26 11:37:04 ~12 min android-e2e 📦apk 📲
✔️ 1d5f4b4 #22 2019-11-26 11:45:15 ~20 min android 📦apk 📲
✔️ 23be2b5 #23 2019-11-26 20:21:44 ~9 min ios 📦ipa 📲
✔️ 23be2b5 #23 2019-11-26 20:24:13 ~11 min android 📦apk 📲
✔️ 23be2b5 #24 2019-11-26 20:35:23 ~22 min android-e2e 📦apk 📲
7d6980c #25 2019-11-27 10:33:23 ~3 min android-e2e 📄log
7d6980c #24 2019-11-27 10:33:53 ~4 min ios 📄log
7d6980c #24 2019-11-27 10:35:41 ~5 min android 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
2a3decd #25 2019-11-28 12:09:37 ~26 sec android 📄log
2a3decd #25 2019-11-28 12:09:40 ~24 sec ios 📄log
✔️ 2a3decd #26 2019-11-28 12:27:20 ~18 min android-e2e 📦apk 📲
8a14435 #27 2019-11-28 13:36:38 ~2 min android-e2e 📄log
8a14435 #26 2019-11-28 13:36:55 ~2 min android 📄log
8a14435 #26 2019-11-28 13:37:44 ~3 min ios 📄log

@acolytec3
Copy link
Contributor Author

@3esmit I believe this solves the basic question of validating ENS addresses within an EIP681 URI, per this specific issue as I have seen events in re-frisk where the ENS address is correctly parsed and set in the wallet/send-transaction/to field in the DB. That said, the only place I'm aware that these URIs are accepted in the app is in the send-transaction flow where you scan a QR code and that flow doesn't handle ENS addresses at present and will throw an unhandled error if you scan a URI with an ENS address embedded in it since it tries to pass it to eip55/address->checksum. I think I need to add ENS name resolution here in order to make it work so will try to add that to this PR as well.

@3esmit 3esmit requested a review from yenda October 19, 2019 13:12
Copy link
Member

@3esmit 3esmit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me.

@3esmit
Copy link
Member

3esmit commented Oct 19, 2019

Thanks for this. This is one step closer to full EIP681 support :)
Regarding the Name Resolution on the UI, I think that it should be another issue/PR because this would be relative to only allowing the ENS names to be used in EIP681.

If the UI is not resolving ENS Names in any address field, then we should investigate that separately.

@3esmit
Copy link
Member

3esmit commented Oct 19, 2019

You might also remove the comment "TODO ens support" :)

@3esmit
Copy link
Member

3esmit commented Oct 19, 2019

Ah, I see, you say about "generating ERC681" using ENS. Yeah, that is totally a new feature, it changes the UI because users might want to enable or disable using ENS name in the payment link.

We certainly would need discussion on that, so I will open another issue "Allow users generate EIP681 with ENS name".

@acolytec3
Copy link
Contributor Author

Thanks for this. This is one step closer to full EIP681 support :)
Regarding the Name Resolution on the UI, I think that it should be another issue/PR because this would be relative to only allowing the ENS names to be used in EIP681.

If the UI is not resolving ENS Names in any address field, then we should investigate that separately.

Sorry, I think I misstated this. ENS name resolution works fine if you enter an address manually in the send flow. It's only when you scan it from a EIP681 URI in the QR flow that it's failing, due to the above noted explanation. It's happening because that flow doesn't expect ENS addresses today so assumes any time the QR read succeeds that it has a valid Ethereum address and then tries to run it through the checksum validation method before populating in the to field in the send-transaction screen and that's where the error occurs. To your above point, I guess that could probably be addressed as a separate issue/PR since it deals with a specific UI flow not resolving ENS addresses.

@acolytec3 acolytec3 changed the title Fixes #9238 - WIP Fixes #9238 Oct 19, 2019
@acolytec3
Copy link
Contributor Author

You might also remove the comment "TODO ens support" :)

Done!

@3esmit
Copy link
Member

3esmit commented Oct 21, 2019

Also, seems like that it should only support ENS if prefix pay- is used, because of EIP831. See discussion https://gitter.im/ethereum/EIPs?at=5da9b857ea0d6159fd877aa6

Copy link
Member

@3esmit 3esmit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To not conflicting with EIP831:

prefix is optional and defines the use-case for this URI. If no prefix is given: “pay-“ is assumed to be concise and ensure backward compatibility to ERC-67. When the prefix is omitted, the payload must start with 0x. Also prefixes must not start with 0x. So starting with 0x can be used as a clear signal that there is no prefix.

So this would be the valid semantic:

ethereum: + (ETH_ADDRESS | (pay- + (ETH_ADDRESS | ENS_NAME)) + payload.

@acolytec3
Copy link
Contributor Author

acolytec3 commented Oct 21, 2019 via email

@acolytec3
Copy link
Contributor Author

acolytec3 commented Oct 23, 2019

@3esmit I've added in additional validation for the pay- prefix as requested. This uses string comparisons/substring methods to parse the address since that seemed more straightforward for parsing this individual field. Does this feel right?

@3esmit
Copy link
Member

3esmit commented Oct 25, 2019

Looks good. Glad you didn't had to use regex for that.

I checked the logic and it is according to EIP681: checks if address, if not check if there is prefix pay, if there is, checks if is ens name valid or address valid.

@yenda can you validate if the PR and merge it? Thanks!

@acolytec3
Copy link
Contributor Author

acolytec3 commented Oct 25, 2019 via email

@churik
Copy link
Member

churik commented Oct 29, 2019

@acolytec3 please, rebase it to current develop and I try to rebuild it

@3esmit
Copy link
Member

3esmit commented Oct 30, 2019

@churik This only fixes the error message saying that the link is invalid, while it was valid.
There is still another issue that is not fixed in this PR which is the UI is not looking up the ENS name when it came from EIP681/qrcode scanner.

@acolytec3
Copy link
Contributor Author

@flexsurfer I just pushed my latest commit which should resolve all of the existing issues, aside from that oddity about values not being correctly represented (which isn't part of my changes) and now building a version rebased on develop. I'm going to test it locally and make sure it all still works but if I have issues, will let you know.

@churik
Copy link
Member

churik commented Nov 28, 2019

Please tell me when it should be retested.
And thanks for your work and patience!

@acolytec3
Copy link
Contributor Author

@flexsurfer Having trouble building on the latest develop branch. I'm getting stream error in the HTTP/2 framing layer during the build process for the androkd-sdk and looks like that was reported in the status-core channel as well. I've merged all the code and can push a commit but not sure if it will build or not until my local environment figures itself out. Do you want me to go ahead and push that merged commit now and then you build and verify it's working?

@flexsurfer
Copy link
Member

@acolytec3 lets push changes anyway, cc @jakubgs

@acolytec3
Copy link
Contributor Author

@flexsurfer Okay, just pushed. Hopefully this didn't break anything. I haven't squashed yet and created a clone of the previous branch so we have it in case something goes awry.

@flexsurfer
Copy link
Member

@acolytec3, unfortunately, conflicts have been resolved incorrectly, some changes from develop were reverted

@acolytec3
Copy link
Contributor Author

@flexsurfer Ugh, sorry, I'll revert to my previous commit and try again once my current build finishes. I'm starting from a clean nix build to see if that solves the stream error and it's going to take a while.

@flexsurfer
Copy link
Member

also this commit might be helpful to understand what has happened in develop 507cc5c#diff-09bf352f4017403bdf258a3d90eac06a

@acolytec3
Copy link
Contributor Author

acolytec3 commented Nov 28, 2019

@flexsurfer can you take a look at this commit and see if it's got the merges correct? 445fa32 I've taken another pass at merging on top of current develop. I still can't get my local environment to build as the run-android make target is still hanging during the build process. That just started this morning when I pulled down the latest develop branch so not sure I have any idea how to remedy it other than possibly doing a make nix-purge and starting fresh. Has anyone else tried that?

@jakubgs
Copy link
Member

jakubgs commented Nov 28, 2019

stream error in the HTTP/2 framing layer
@acolytec3

Could you gist the whole log?

@@ -0,0 +1,72 @@
(ns status-im.ui.screens.wallet.choose-recipient.views
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this view doesn't exist anymore in develop

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense now that I look at it again. I'll try it again later today.

@@ -6,11 +6,306 @@
[status-im.ui.components.react :as react]
[status-im.ui.components.styles :as components.styles]
[status-im.ui.components.toolbar.view :as topbar]
[status-im.ui.components.tooltip.views :as tooltip]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most of the code here was deleted in develop

@acolytec3
Copy link
Contributor Author

stream error in the HTTP/2 framing layer
@acolytec3

Could you gist the whole log?

@jakubgs I didn't hang onto the console output from the make target. Is there a build log somewhere it might have been outputted to? I'm not real familiar with the logging from the build process and haven't been able to track it down.

@flexsurfer
Copy link
Member

probably it might be better to create a new branch from latest develop and move all your changes there and file a new PR, but it's up to you

@3esmit
Copy link
Member

3esmit commented Nov 29, 2019

@flexsurfer thats an horrible thing, it should be a better way of doing this. I have dealt with merging conflicts in past and it was a matter of accepting the correct changes, and manually merging where it messes up.

I am trying to understand here why it broke so bad.

@acolytec3
Copy link
Contributor Author

@3esmit It's not a big deal. Once I figure out why my build environment refuses to work, it shouldn't take too long to reconstruct everything. Just a case a bad timing where multiple PRs touching the same code going on at the same time. I think I know what all needs to be updated and can hopefully get it done quickly once I get to the underlying environment issue fixed.

@flexsurfer Whatever that stream error was yesterday has completely hosed my setup so I think I'm going to have to start from scratch. I've tried nix-purge and then rebuilding and no luck. None of the make commands related to building startdev or android-ports or run-android work and I'm not getting any error messages at all. It just hangs when I try to to run them. I'm going to completely blow away my local repos and start again so may be a while before I can do any actual coding.

@3esmit
Copy link
Member

3esmit commented Nov 29, 2019

Some problems Ive noticed in this process:

  • there is no rebase merging commit - seems like the history was erased? @acolytec3 did you used any force commit? Where are all the commits from the Status PR I tested? I would revert to the last working state and do a merge develop again, until it works.
  • @flexsurfer This PR is not aware of the changes done, and perhaps its using components or flows that changed, your help in merging would be appreciated.
  • @acolytec3 did not setup the signature of commits, and its annoying to see the error x everytime in your commits. I can help you configure this, but you should be able to do it on your own by reading this https://help.github.com/en/github/authenticating-to-github/managing-commit-signature-verification

@acolytec3
Copy link
Contributor Author

@3esmit I haven't done any force commits in the last few days but I did rebase on the latest develop yesterday and that's when everything got hosed. Once my PC finishes reinstalling the build environment, I'll get the PR cleaned up and working again as I still have all the working code from the PR and just need to integrate it with the redesigned interface in the qr flow that @flexsurfer introduced in develop.

@jakubgs
Copy link
Member

jakubgs commented Nov 29, 2019

@acolytec3 what do you mean by:

I'm not getting any error messages at all.

I find that really hard to believe. What happens when you do make shell TARGET_OS=android?

@cammellos
Copy link
Contributor

@acolytec3 what do you use as a target platform for android? (geymotion, avd , real )
Make sure you are using the same adb version (needs to be 1.0.41), if you are using genymotion or any software that might not be using the adb provided with nix.

@jakubgs
Copy link
Member

jakubgs commented Nov 29, 2019

@acolytec3 after some talk with @cammellos I see that it's possible that the process hangs. I though what you were describing was exiting without error. But if it hangs than I'd like to see what processes are present. Could you try the make target that hangs for you without errors and show me the result of ps faux? Specifically the tree of processes started from the make command.

@acolytec3
Copy link
Contributor Author

acolytec3 commented Nov 29, 2019

@cammellos @jakubgs After running make nix-purge, deleting the entire local copy of repo, cloning a fresh one from github, and then running make shell TARGET_OS=android it's now producing this error. I've attached the entire console output from the time I kicked off the make command.
I've added the ps faux from make startdev-android-real as well as the place where it's hanging in the build process.

https://gist.github.com/acolytec3/8f6c9070889ea6e1acbe4999a3317864

@acolytec3
Copy link
Contributor Author

@cammellos @jakubgs Pause on any further worrying about my make issues. I'm going to let the startdev-android-real go for a while and see if it ever fully builds when I'm on develop. I had an old branch that I tried startdev... from and it did finally finish and boot to the REPL (though that branch has it's own issues so run-android doesn't work but I think that's related to the code in the branch and not the make recipe. Will circle back if I don't make any progress the next 24 hours.

@acolytec3
Copy link
Contributor Author

@flexsurfer @yenda @3esmit I'm pausing work on this for the moment as I can't get the app to build. Gist is below with the errors I see when trying to build from a completely clean repo cloned from status-react building off the current develop branch. I've seen comments in the status-core channel that others are maybe seeing similar errors but evidently not to the same level as me so not sure if it's just my environment or what though I know I haven't changed anything external. I'll fetch the latest develop branch in a day or two and try again but something that got merged in the past 36 hours has broken the build process for me.

https://gist.github.com/acolytec3/54ac7c1d085bccc48e6e65eaea94ba75

@acolytec3
Copy link
Contributor Author

@flexsurfer @yenda @churik @3esmit My build issues seems to be sorted. Submitted a clean PR rebased on current develop that imports all of the commits from this PR and seems to be working as expected. I'm going to close this one.

#9563

@acolytec3 acolytec3 closed this Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

ENS name is not resolved when scanned from QRCode EIP681 does not support ENS_NAME
9 participants