Skip to content

Commit

Permalink
fix: CI should formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick-ahnlabio committed Feb 6, 2024
1 parent 8286dfb commit 84728f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions web3swift/src/Client/Models/EthereumBlockInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Copyright © 2022 Argent Labs Limited. All rights reserved.
//

import Foundation
import BigInt
import Foundation

public struct EthereumBlockInfo: Equatable {
public var number: EthereumBlock
Expand Down Expand Up @@ -40,15 +40,15 @@ extension EthereumBlockInfo: Codable {
guard let transactions = try? container.decode([String].self, forKey: .transactions) else {
throw JSONRPCError.decodingError
}

guard let gasLimit = try? container.decode(String.self, forKey: .gasLimit) else {
throw JSONRPCError.decodingError
}

guard let gasUsed = try? container.decode(String.self, forKey: .gasUsed) else {
throw JSONRPCError.decodingError
}

let baseFeePerGas = try? container.decode(String.self, forKey: .baseFeePerGas)

self.number = number
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class HttpNetworkProvider: NetworkProviderProtocol {
public let session: URLSession
private let url: URL
private let headers: [String: String]

public init(session: URLSession, url: URL, headers: [String: String]? = nil) {
self.session = session
self.url = url
Expand All @@ -38,7 +38,7 @@ public class HttpNetworkProvider: NetworkProviderProtocol {
headers.forEach { key, value in
request.addValue(value, forHTTPHeaderField: key)
}

let id = 1
let rpcRequest = JSONRPCRequest(jsonrpc: "2.0", method: method, params: params, id: id)
guard let encoded = try? JSONEncoder().encode(rpcRequest) else {
Expand Down

0 comments on commit 84728f0

Please sign in to comment.