File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/Core/EthereumNetwork/Request Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ extension APIRequest {
37
37
/// This bit of code is purposed to work with literal types that comes in Response in hexString type.
38
38
/// Currently it's just `Data` and any kind of Integers `(U)Int`, `Big(U)Int`.
39
39
if Result . self == Data . self || Result . self == UInt . self || Result . self == Int . self || Result . self == BigInt . self || Result . self == BigUInt . self {
40
- guard let Literal = Result . self as? LiteralInitiableFromString . Type else { throw Web3Error . typeError }
40
+ guard let LiteralType = Result . self as? LiteralInitiableFromString . Type else { throw Web3Error . typeError }
41
41
guard let responseAsString = try ? JSONDecoder ( ) . decode ( APIResponse< String> . self , from: data) else { throw Web3Error . dataError }
42
- guard let literalValue = Literal . init ( from: responseAsString. result) else { throw Web3Error . dataError }
42
+ guard let literalValue = LiteralType . init ( from: responseAsString. result) else { throw Web3Error . dataError }
43
43
/// `Literal` conforming `LiteralInitiableFromString`, that conforming to an `APIResponseType` type, so it's never fails.
44
44
guard let result = literalValue as? Result else { throw Web3Error . typeError }
45
45
return APIResponse ( id: responseAsString. id, jsonrpc: responseAsString. jsonrpc, result: result)
You can’t perform that action at this time.
0 commit comments