-
Notifications
You must be signed in to change notification settings - Fork 285
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(core-json-rpc): retrieve bip38 wallet after creating it and return the encoded WIF #1652
Conversation
Please test! Sometimes I get this error:
|
I'm giving up. |
No quitting :danstop: |
It's the stupid tests, I hate them! They just don't pass because this core/packages/core-json-rpc/__tests__/wallets.test.js Lines 157 to 160 in 6518001
returns this
|
@zillionn adjusted it for you |
OK thanks, but will the tests pass??? |
Closing this as it required more changes after looking at the full picture. |
Proposed changes
When there is no
encryptedWif
in the database:core/packages/core-json-rpc/lib/server/utils/bip38-keys.js
Lines 8 to 10 in 6518001
the
catch
is returningencryptedWif
not encoded:core/packages/core-json-rpc/lib/server/methods/wallets/bip38/create.js
Lines 20 to 36 in 6518001
Checklist