File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Sources/Web3Core/KeystoreManager
Tests/web3swiftTests/remoteTests Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public struct EtherscanTransactionChecker: TransactionChecker {
1414 self . urlSession = URLSessionProxyImplementation ( urlSession: urlSession)
1515 self . apiKey = apiKey
1616 }
17-
17+
1818 internal init ( urlSession: URLSessionProxy , apiKey: String ) {
1919 self . urlSession = urlSession
2020 self . apiKey = apiKey
@@ -41,7 +41,7 @@ extension EtherscanTransactionChecker {
4141
4242public enum EtherscanTransactionCheckerError : LocalizedError , Equatable {
4343 case invalidUrl( url: String )
44-
44+
4545 public var errorDescription : String ? {
4646 switch self {
4747 case let . invalidUrl( url) :
@@ -56,7 +56,7 @@ internal protocol URLSessionProxy {
5656
5757internal struct URLSessionProxyImplementation : URLSessionProxy {
5858 let urlSession : URLSession
59-
59+
6060 func data( for request: URLRequest ) async throws -> ( Data , URLResponse ) {
6161 try await urlSession. data ( for: request)
6262 }
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ final class EtherscanTransactionCheckerTests: XCTestCase {
4040 XCTAssertTrue ( true )
4141 }
4242 }
43-
43+
4444 func testInitURLError( ) async throws {
4545 do {
4646 let sut = EtherscanTransactionChecker ( urlSession: URLSessionMock ( ) , apiKey: testApiKey)
@@ -66,7 +66,6 @@ final class EtherscanTransactionCheckerTests: XCTestCase {
6666 }
6767}
6868
69-
7069// MARK: - EtherscanTransactionCheckerErrorTests
7170
7271final class EtherscanTransactionCheckerErrorTests : XCTestCase {
You can’t perform that action at this time.
0 commit comments