2

I am assuming this is an issue in ethers.js v6: https://github.com/ethers-io/ethers.js/issues/4735 but is it a bug or there is something wrong with the following snippet:

var wallet = ethers.HDNodeWallet.fromPhrase(data);

It returns a TypeError related to "invalid mnemonic checksum" but the mnemonic is one of the acceptable ones.

1 Answer 1

0

The problem is that this version of ethers.js doesn't handle trailing '\n' as spaces or blanks and instead handled those as data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.