File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
web3swift/HookedFunctions Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ public struct Utilities {
206206 ///
207207 /// Input parameters should be Data objects.
208208 public static func personalECRecover( _ personalMessage: Data , signature: Data ) -> EthereumAddress ? {
209- if signature. count != 65 { return nil }
209+ if signature. count != 65 { return nil }
210210 let rData = signature [ 0 ..< 32 ] . bytes
211211 let sData = signature [ 32 ..< 64 ] . bytes
212212 var vData = signature [ 64 ]
@@ -229,7 +229,7 @@ public struct Utilities {
229229 ///
230230 /// Input parameters should be Data objects.
231231 public static func hashECRecover( hash: Data , signature: Data ) -> EthereumAddress ? {
232- if signature. count != 65 { return nil }
232+ if signature. count != 65 { return nil }
233233 let rData = signature [ 0 ..< 32 ] . bytes
234234 let sData = signature [ 32 ..< 64 ] . bytes
235235 var vData = signature [ 64 ]
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ extension Web3.BrowserFunctions {
5252 }
5353
5454 public func personalECRecover( _ personalMessage: Data , signature: Data ) -> String ? {
55- if signature. count != 65 { return nil }
55+ if signature. count != 65 { return nil }
5656 let rData = signature [ 0 ..< 32 ] . bytes
5757 let sData = signature [ 32 ..< 64 ] . bytes
5858 var vData = signature [ 64 ]
You can’t perform that action at this time.
0 commit comments