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

13-word passphrase causes error in js console #986

Description

@slaweet

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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions