wagyu icon indicating copy to clipboard operation
wagyu copied to clipboard

`ethereum import-hd` fails with valid mnemonic

Open lightclient opened this issue 3 years ago • 1 comments

$ ./target/release/wagyu ethereum import-hd --mnemonic "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat" --derivation "m/44'/60'/0'/0/0/"
Error: MnemonicError(WordlistError(InvalidWord("candy")))

Not sure why this is not working, this is clearly a valid mnemonic.

lightclient avatar Aug 08 '21 18:08 lightclient

Okay if I get rid of all mnemonic processors except the English one, I get a different error Error: DerivationPathError(InvalidChildNumberFormat). If I drop the final slash on the derivation path, it returns the correct address.

Looking more into this, it seems like the or chain of mnemonic processors will only return the error from the last processor. This is definitely not what we want, since we get into issues like this where it isn't clear what the error is.

lightclient avatar Aug 08 '21 19:08 lightclient