Skip to content

Commit

Permalink
modify error message case
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangRGK committed Apr 16, 2020
1 parent 115856e commit d3cc3af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void generateMnemonic(final Promise promise) {
public void importMnemonic(final String mnemonic, final String salt, final Promise promise) {
try {
if (!Bip39.isMnemonicValid(mnemonic)) {
promise.reject("error", "Invalid mnemonic");
promise.reject("error", "Invalid Mnemonic");
} else {
final byte[] seed = Bip39.newSeed(mnemonic, salt);
final KeyInfo keyPair = Bbc.deriveKey(seed, 0, 0, 0);
Expand Down

0 comments on commit d3cc3af

Please sign in to comment.