Skip to content

Commit 6b6f791

Browse files
committed
chore(typos): fix typos
1 parent 9040f3e commit 6b6f791

File tree

10 files changed

+133
-133
lines changed

10 files changed

+133
-133
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
- Update libs versions, Cartfile and Pods dependencies [\#334](https://github.com/skywinder/web3swift/pull/334) ([AnnaYatsun1](https://github.com/AnnaYatsun1))
163163
- fix crash when 'payable' nil [\#332](https://github.com/skywinder/web3swift/pull/332) ([xdozorx](https://github.com/xdozorx))
164164
- Update README.md [\#331](https://github.com/skywinder/web3swift/pull/331) ([Iysbaera](https://github.com/Iysbaera))
165-
- CrytoSwift update version 1.4.0 [\#327](https://github.com/skywinder/web3swift/pull/327) ([lzttxs](https://github.com/lzttxs))
165+
- CryptoSwift update version 1.4.0 [\#327](https://github.com/skywinder/web3swift/pull/327) ([lzttxs](https://github.com/lzttxs))
166166
- Update carthage libraries [\#325](https://github.com/skywinder/web3swift/pull/325) ([alex78pro](https://github.com/alex78pro))
167167
- Gas estimate fix [\#324](https://github.com/skywinder/web3swift/pull/324) ([frostiq](https://github.com/frostiq))
168168
- Update README.md [\#306](https://github.com/skywinder/web3swift/pull/306) ([manuG420](https://github.com/manuG420))
@@ -252,7 +252,7 @@
252252
- received transaction id from geth node server but not able to see that transaction id at etherscan.io [\#200](https://github.com/skywinder/web3swift/issues/200)
253253
- How do I fetch information such as balance, decimal,symbol and name of ERC20token ? [\#199](https://github.com/skywinder/web3swift/issues/199)
254254
- Starscream 3.1.0 not compatible with Swift 5.0 [\#195](https://github.com/skywinder/web3swift/issues/195)
255-
- How to Connect infuraWebsocket and subsribe particular event in swift? [\#193](https://github.com/skywinder/web3swift/issues/193)
255+
- How to Connect infuraWebsocket and subscribe particular event in swift? [\#193](https://github.com/skywinder/web3swift/issues/193)
256256
- Use of unresolved identifier 'Wallet' [\#192](https://github.com/skywinder/web3swift/issues/192)
257257
- V in Signed Message Hash not being calculated properly [\#191](https://github.com/skywinder/web3swift/issues/191)
258258
- Not possible to calculate fast, normal and cheap transaction fee ? [\#190](https://github.com/skywinder/web3swift/issues/190)

Example/myWeb3Wallet/myWeb3Wallet/ViewControllers/WalletController/WalletViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class WalletViewController: UIViewController {
102102
}
103103
} catch {
104104
#if DEBUG
105-
print("error creating keyStrore")
105+
print("error creating keyStore")
106106
print("Private key error.")
107107
#endif
108108
let alert = UIAlertController(title: "Error", message: "Please enter correct Private key", preferredStyle: .alert)

Sources/Web3Core/EthereumNetwork/RequestParameter/RequestParameter+RawRepresentable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension RequestParameter: RawRepresentable {
1313
/// to encode mixed type values array in JSON.
1414
///
1515
/// This protocol is used to implement custom `encode` method for that enum,
16-
/// which encodes an array of self-assosiated values.
16+
/// which encodes an array of self-associated values.
1717
///
1818
/// You're totally free to use explicit and more convenience member init as `RequestParameter.int(12)` in your code.
1919
/// - Parameter rawValue: one of the supported types like `Int`, `UInt` etc.

Sources/Web3Core/Structure/SECP256k1.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extension SECP256K1 {
8383
return serializedKey
8484
}
8585

86-
internal static func recoverPublicKey(hash: Data, recoverableSignature: inout secp256k1_ecdsa_recoverable_signature) -> secp256k1_pubkey? {
86+
internal static func recoverPublicKey(hash: Data, recoverableSignature: input secp256k1_ecdsa_recoverable_signature) -> secp256k1_pubkey? {
8787
guard let context = context, hash.count == 32 else { return nil }
8888
var publicKey: secp256k1_pubkey = secp256k1_pubkey()
8989
let result = hash.withUnsafeBytes { (hashRawBufferPointer: UnsafeRawBufferPointer) -> Int32? in
@@ -124,7 +124,7 @@ extension SECP256K1 {
124124
return publicKey
125125
}
126126

127-
public static func serializePublicKey(publicKey: inout secp256k1_pubkey, compressed: Bool = false) -> Data? {
127+
public static func serializePublicKey(publicKey: input secp256k1_pubkey, compressed: Bool = false) -> Data? {
128128
guard let context = context else { return nil }
129129
var keyLength = compressed ? 33 : 65
130130
var serializedPubkey = Data(repeating: 0x00, count: keyLength)
@@ -189,11 +189,11 @@ extension SECP256K1 {
189189
} else if v >= 35 && v <= 38 {
190190
v -= 35
191191
}
192-
let result = serializedSignature.withUnsafeBytes { (serRawBufferPtr: UnsafeRawBufferPointer) -> Int32? in
193-
if let serRawPtr = serRawBufferPtr.baseAddress, serRawBufferPtr.count > 0 {
194-
let serPtr = serRawPtr.assumingMemoryBound(to: UInt8.self)
192+
let result = serializedSignature.withUnsafeBytes { (setRawBufferPtr: UnsafeRawBufferPointer) -> Int32? in
193+
if let setRawPtr = setRawBufferPtr.baseAddress, setRawBufferPtr.count > 0 {
194+
let setPtr = setRawPtr.assumingMemoryBound(to: UInt8.self)
195195
return withUnsafeMutablePointer(to: &recoverableSignature) { (signaturePointer: UnsafeMutablePointer<secp256k1_ecdsa_recoverable_signature>) -> Int32 in
196-
let res = secp256k1_ecdsa_recoverable_signature_parse_compact(context, signaturePointer, serPtr, v)
196+
let res = secp256k1_ecdsa_recoverable_signature_parse_compact(context, signaturePointer, setPtr, v)
197197
return res
198198
}
199199
} else {
@@ -206,16 +206,16 @@ extension SECP256K1 {
206206
return recoverableSignature
207207
}
208208

209-
internal static func serializeSignature(recoverableSignature: inout secp256k1_ecdsa_recoverable_signature) -> Data? {
209+
internal static func serializeSignature(recoverableSignature: input secp256k1_ecdsa_recoverable_signature) -> Data? {
210210
guard let context = context else { return nil }
211211
var serializedSignature = Data(repeating: 0x00, count: 64)
212212
var v: Int32 = 0
213-
let result = serializedSignature.withUnsafeMutableBytes { (serSignatureRawBufferPointer: UnsafeMutableRawBufferPointer) -> Int32? in
214-
if let serSignatureRawPointer = serSignatureRawBufferPointer.baseAddress, serSignatureRawBufferPointer.count > 0 {
215-
let serSignaturePointer = serSignatureRawPointer.assumingMemoryBound(to: UInt8.self)
213+
let result = serializedSignature.withUnsafeMutableBytes { (setSignatureRawBufferPointer: UnsafeMutableRawBufferPointer) -> Int32? in
214+
if let setSignatureRawPointer = setSignatureRawBufferPointer.baseAddress, setSignatureRawBufferPointer.count > 0 {
215+
let setSignaturePointer = setSignatureRawPointer.assumingMemoryBound(to: UInt8.self)
216216
return withUnsafePointer(to: &recoverableSignature) { (signaturePointer: UnsafePointer<secp256k1_ecdsa_recoverable_signature>) -> Int32 in
217217
withUnsafeMutablePointer(to: &v) { (vPtr: UnsafeMutablePointer<Int32>) -> Int32 in
218-
let res = secp256k1_ecdsa_recoverable_signature_serialize_compact(context, serSignaturePointer, vPtr, signaturePointer)
218+
let res = secp256k1_ecdsa_recoverable_signature_serialize_compact(context, setSignaturePointer, vPtr, signaturePointer)
219219
return res
220220
}
221221
}

0 commit comments

Comments
 (0)