Skip to content

Conversation

@jeroenptrs
Copy link
Contributor

Description

Wallet should be async, since bip39.mnemonic returns a promise.

Motivation and Context

Leaving this unfixed breaks the sign in process

How Has This Been Tested?

/

Screenshots (if appropriate)

/

Types of changes

  • Chore (tests, refactors, and fixes)
  • New feature (adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have read the CONTRIBUTING guidelines and confirm that my code follows the code style of this project.
  • Tests for the changes have been added (for bug fixes/features)

Documentation

  • Docs need to be added/updated (for bug fixes/features)

Closing issues

Fixes #

@jeroenptrs jeroenptrs added this to the 0.6.0 milestone Jul 31, 2019
@jeroenptrs jeroenptrs self-assigned this Jul 31, 2019
@codecov
Copy link

codecov bot commented Jul 31, 2019

Codecov Report

Merging #1051 into develop will not change coverage.
The diff coverage is 33.33%.

@@           Coverage Diff            @@
##           develop    #1051   +/-   ##
========================================
  Coverage    51.48%   51.48%           
========================================
  Files          237      237           
  Lines         2016     2016           
  Branches       267      267           
========================================
  Hits          1038     1038           
  Misses         813      813           
  Partials       165      165

}

const seed = bip39.mnemonicToSeed(mnemonic, passphrase);
const seed = await bip39.mnemonicToSeed(mnemonic, passphrase);
Copy link
Member

Choose a reason for hiding this comment

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

aaaaaaaaaaaah this changed to an async function since the 3.0.x release.
There's also a sync version if I am not mistaken, but this is fine aswell :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Better safe than sorry? 😎

@DalderupMaurice DalderupMaurice added the PR: good to merge Reviewed and approved label Jul 31, 2019
@DalderupMaurice DalderupMaurice merged commit be79e6e into develop Jul 31, 2019
@DalderupMaurice DalderupMaurice deleted the chore/fix-async-wallet branch July 31, 2019 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: good to merge Reviewed and approved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants