Skip to content

Commit c9e0edd

Browse files
committed
add default value
1 parent c1d01d2 commit c9e0edd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/web3swift/Web3/Web3+Signing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct Web3Signer {
2323
keystore: T,
2424
account: EthereumAddress,
2525
password: String,
26-
useHash: Bool,
26+
useHash: Bool = true,
2727
useExtraEntropy: Bool = false) throws -> Data? {
2828
var privateKey = try keystore.UNSAFE_getPrivateKeyData(password: password, account: account)
2929
defer { Data.zero(&privateKey) }

0 commit comments

Comments
 (0)