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 {
14
14
self . urlSession = URLSessionProxyImplementation ( urlSession: urlSession)
15
15
self . apiKey = apiKey
16
16
}
17
-
17
+
18
18
internal init ( urlSession: URLSessionProxy , apiKey: String ) {
19
19
self . urlSession = urlSession
20
20
self . apiKey = apiKey
@@ -41,7 +41,7 @@ extension EtherscanTransactionChecker {
41
41
42
42
public enum EtherscanTransactionCheckerError : LocalizedError , Equatable {
43
43
case invalidUrl( url: String )
44
-
44
+
45
45
public var errorDescription : String ? {
46
46
switch self {
47
47
case let . invalidUrl( url) :
@@ -56,7 +56,7 @@ internal protocol URLSessionProxy {
56
56
57
57
internal struct URLSessionProxyImplementation : URLSessionProxy {
58
58
let urlSession : URLSession
59
-
59
+
60
60
func data( for request: URLRequest ) async throws -> ( Data , URLResponse ) {
61
61
try await urlSession. data ( for: request)
62
62
}
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ final class EtherscanTransactionCheckerTests: XCTestCase {
40
40
XCTAssertTrue ( true )
41
41
}
42
42
}
43
-
43
+
44
44
func testInitURLError( ) async throws {
45
45
do {
46
46
let sut = EtherscanTransactionChecker ( urlSession: URLSessionMock ( ) , apiKey: testApiKey)
@@ -66,7 +66,6 @@ final class EtherscanTransactionCheckerTests: XCTestCase {
66
66
}
67
67
}
68
68
69
-
70
69
// MARK: - EtherscanTransactionCheckerErrorTests
71
70
72
71
final class EtherscanTransactionCheckerErrorTests : XCTestCase {
You can’t perform that action at this time.
0 commit comments