We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1861aa6 commit d146895Copy full SHA for d146895
Sources/Web3Core/KeystoreManager/BIP39.swift
@@ -105,8 +105,7 @@ public class BIP39 {
105
guard let checksumData = inputData.sha256().bitsInRange(0, checksumLength) else {
106
return nil
107
}
108
- let checksum = String(checksumData, radix: 2).leftPadding(toLength: checksumLength, withPad: "0")
109
- return checksum
+ return String(checksumData, radix: 2).leftPadding(toLength: checksumLength, withPad: "0")
110
111
112
public static func generateMnemonicsFromEntropy(entropy: Data, language: BIP39Language = .english) -> String? {
0 commit comments