Skip to content

Commit cd10a86

Browse files
A very little bit refactoring
1 parent 9d97d29 commit cd10a86

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Sources/Core/EthereumNetwork/Request/APIRequest+Methods.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ extension APIRequest {
3434
}
3535
}
3636

37-
/// This bit of code is purposed to work with literal types that comes in Response in hexString type.
37+
/// This bit of code is purposed to work with literal types that comes in ``Response`` in hexString type.
3838
/// Currently it's just `Data` and any kind of Integers `(U)Int`, `Big(U)Int`.
3939
if Result.self == Data.self || Result.self == UInt.self || Result.self == Int.self || Result.self == BigInt.self || Result.self == BigUInt.self {
4040
guard let LiteralType = Result.self as? LiteralInitiableFromString.Type else { throw Web3Error.typeError }
4141
guard let responseAsString = try? JSONDecoder().decode(APIResponse<String>.self, from: data) else { throw Web3Error.dataError }
4242
guard let literalValue = LiteralType.init(from: responseAsString.result) else { throw Web3Error.dataError }
43-
/// `Literal` conforming `LiteralInitiableFromString`, that conforming to an `APIResponseType` type, so it's never fails.
43+
/// `literalValue` conforms `LiteralInitiableFromString`, that conforming to an `APIResponseType` type, so it's never fails.
4444
guard let result = literalValue as? Result else { throw Web3Error.typeError }
4545
return APIResponse(id: responseAsString.id, jsonrpc: responseAsString.jsonrpc, result: result)
4646
}

Sources/Core/Transaction/AbstractEnvelope.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ public protocol AbstractEnvelope: CustomStringConvertible { // possibly add Coda
155155
}
156156

157157
public extension AbstractEnvelope {
158-
159158
mutating func clearSignatureData() {
160159
self.v = 1
161160
self.r = 0

0 commit comments

Comments
 (0)