Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

13-word passphrase causes error in js console #986

Closed
slaweet opened this issue Nov 17, 2017 · 0 comments
Closed

13-word passphrase causes error in js console #986

slaweet opened this issue Nov 17, 2017 · 0 comments

Comments

@slaweet
Copy link
Contributor

slaweet commented Nov 17, 2017

Expected behaviour

Entering 13-word passphrase should give "Invalid passphrase" error

Actual behaviour

Entering 13-word passphrase causes an error, therefore the input value doesn't update

Uncaught RangeError: Index out of range
    at checkInt (index.js:1260)
    at Uint8Array.writeUInt8 (index.js:1304)
    at Function.Mnemonic.isValid (mnemonic.js:131)
    at isValidPassphrase (passphrase.js:92)
    at PassphraseInput.handleValueChange (index.js:25)
    at Input._this.handleChange (Input.js:74)
    at HTMLUnknownElement.callCallback (react-dom.development.js:1299)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:1338)
    at Object.invokeGuardedCallback (react-dom.development.js:1195)
    at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:1209)

Steps to reproduce

  • Open nano
  • enter 12-word passphrase, e.g.awkward service glimpse punch genre calm grow life bullet boil match like
  • type one more valid word, e.g. life
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant