Skip to content

Commit 40a9a3d

Browse files
chore: updated error message for entropyOf
1 parent d69d594 commit 40a9a3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Web3Core/KeystoreManager/BIP39.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public class BIP39 {
101101
isCorrectSize,
102102
let entropy = Data.randomBytes(length: randomBytesCount)
103103
else {
104-
throw AbstractKeystoreError.noEntropyError("BIP39. \(!isCorrectSize ? "Requested entropy of wrong bits size \(size)." : "Failed to generated \(randomBytesCount) of random bytes.")")
104+
throw AbstractKeystoreError.noEntropyError("BIP39. \(!isCorrectSize ? "Requested entropy of wrong bits size: \(size). Expected: 128 <= size <= 256, size % 32 == 0." : "Failed to generate \(randomBytesCount) of random bytes.")")
105105
}
106106
return entropy
107107
}

0 commit comments

Comments
 (0)