fix an logic issue when the recovery password is too long

pull/891/head
Ryan ZHAO 10 months ago
parent 6887abb9ab
commit 2798e76f25

@ -118,7 +118,7 @@ public enum Mnemonic {
// Check preconditions
guard words.count >= 12 else { throw DecodingError.inputTooShort }
guard !words.count.isMultiple(of: 3) else { throw DecodingError.missingLastWord }
guard words.count == 12 else { throw DecodingError.generic }
// Get checksum word
let checksumWord = words.popLast()!

Loading…
Cancel
Save