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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keychain: adds support for private keys as non-array #169
Conversation
src/config/mnemonic.ts
Outdated
@@ -46,7 +47,9 @@ export const configExtender: ConfigExtender = (finalConfig, userConfig) => { | |||
const { rpc, keys } = byNetworkMnemonic | |||
if (!finalNetwork.url && rpc) finalNetwork.url = rpc | |||
if (!finalNetwork.accounts && keys) | |||
finalNetwork.accounts = ensureHexEncoding(keys) | |||
finalNetwork.accounts = isArray(keys) |
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.
Ah, rather than importing this from lodash, we can just use Array.isArray()
.
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.
Good point!
Tests seem to be failing because of #168 |
We might need to update their package.jsons/yarn.locks, in a similar manner to aragon/client#1434. But are we not installing the tests via |
Yes this is exactly the problem.
No we use a pretty old version of the client, which doesn't have any |
Ohhh gotcha; this is also due to the client? I thought the tests were having trouble building each app's frontend. |
Yes, seems like they fail because of this client bug. We can see the specific error message here: https://github.com/aragon/buidler-aragon/pull/169/checks?check_run_id=735557814#step:7:425 |
Could we pull the built client from somewhere (e.g. IPFS or Github releases) instead of building it locally? |
I'm a firm believer that the client should not have to be built multiple times. Configuration should be handled at another layer, which would allow reusing the content in APM for all possible needs |
@macor161 I've merged this branch with master, now that we have the hotfix in place.
Definitely agree; I've made #175 for this separately. |
Codecov Report
@@ Coverage Diff @@
## master #169 +/- ##
==========================================
- Coverage 54.71% 53.66% -1.05%
==========================================
Files 70 71 +1
Lines 1380 1407 +27
Branches 206 212 +6
==========================================
Hits 755 755
- Misses 564 591 +27
Partials 61 61
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
馃 Pull Request Description
mainnet_key.json
orrinkeby_key.json
file.Rational
Multiple users have reported that the Buidler plugin didn't work after switching from aragonCLI. It turns out they had a key file that contained a single key, not in an array.