diff --git a/Tests/web3swiftTests/remoteTests/EIP1559Tests.swift b/Tests/web3swiftTests/remoteTests/EIP1559Tests.swift index 92d323b57..5828c675f 100644 --- a/Tests/web3swiftTests/remoteTests/EIP1559Tests.swift +++ b/Tests/web3swiftTests/remoteTests/EIP1559Tests.swift @@ -19,24 +19,7 @@ final class EIP1559Tests: XCTestCase { type: .eip1559, to: EthereumAddress("0xb47292B7bBedA4447564B8336E4eD1f93735e7C7")!, chainID: web3.provider.network!.chainID, - value: try XCTUnwrap(Utilities.parseToBigUInt("0.1", units: .ether)), - gasLimit: 21_000 - ) - // Vitalik's address - tx.from = EthereumAddress("0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B")! - // Should fail if there would be something wrong with the tx - let res = try await web3.eth.estimateGas(for: tx) - XCTAssertGreaterThan(res, 0) - } - - func testEIP1159GoerliTransaction() async throws { - let web3 = try await Web3.InfuraGoerliWeb3(accessToken: Constants.infuraToken) - var tx = CodableTransaction( - type: .eip1559, - to: EthereumAddress("0xeBec795c9c8bBD61FFc14A6662944748F299cAcf")!, - chainID: web3.provider.network!.chainID, - value: try XCTUnwrap(Utilities.parseToBigUInt("0.1", units: .ether)), - gasLimit: 21_000 + value: try XCTUnwrap(Utilities.parseToBigUInt("0.1", units: .ether)) ) // Vitalik's address tx.from = EthereumAddress("0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B")! @@ -45,4 +28,5 @@ final class EIP1559Tests: XCTestCase { XCTAssertGreaterThan(res, 0) } + // MARK: Here was Goerli network test, but now gateway returns 410 } diff --git a/Tests/web3swiftTests/remoteTests/EtherscanTransactionCheckerTests.swift b/Tests/web3swiftTests/remoteTests/EtherscanTransactionCheckerTests.swift index 88de5f92b..492975459 100644 --- a/Tests/web3swiftTests/remoteTests/EtherscanTransactionCheckerTests.swift +++ b/Tests/web3swiftTests/remoteTests/EtherscanTransactionCheckerTests.swift @@ -42,18 +42,6 @@ final class EtherscanTransactionCheckerTests: XCTestCase { } } - func testInitURLError() async throws { - do { - let sut = EtherscanTransactionChecker(urlSession: URLSessionMock(), apiKey: " ") - - _ = try await sut.hasTransactions(ethereumAddress: try XCTUnwrap(EthereumAddress(vitaliksAddress))) - - XCTFail("URL init must throw an error") - } catch EtherscanTransactionCheckerError.invalidUrl { - XCTAssertTrue(true) - } - } - func testWrongApiKey() async throws { do { let sut = EtherscanTransactionChecker(urlSession: URLSession.shared, apiKey: "-") diff --git a/Tests/web3swiftTests/remoteTests/Web3HttpProviderTests.swift b/Tests/web3swiftTests/remoteTests/Web3HttpProviderTests.swift index b2a5e144b..2cc6b790c 100644 --- a/Tests/web3swiftTests/remoteTests/Web3HttpProviderTests.swift +++ b/Tests/web3swiftTests/remoteTests/Web3HttpProviderTests.swift @@ -24,9 +24,6 @@ final class Web3HttpProviderTests: XCTestCase { web3 = try await Web3HttpProvider(url: URL(string: "https://rpc.ankr.com/bsc")!, network: nil) XCTAssertEqual(web3.network?.chainID, 56) - web3 = try await Web3HttpProvider(url: URL(string: "https://rpc-mainnet.maticvigil.com/")!, network: nil) - XCTAssertEqual(web3.network?.chainID, 137) - web3 = try await Web3HttpProvider(url: URL(string: "https://optimism.gateway.tenderly.co")!, network: nil) XCTAssertEqual(web3.network?.chainID, 10) }