minor fix on decoding recovery password

pull/891/head
Ryan ZHAO 10 months ago
parent 4196225a7d
commit b9dde96673

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

Loading…
Cancel
Save