diff --git a/Tests/FlowAccessAPIOnSandboxTests.swift b/Tests/FlowAccessAPIOnPreviewnetTests.swift similarity index 83% rename from Tests/FlowAccessAPIOnSandboxTests.swift rename to Tests/FlowAccessAPIOnPreviewnetTests.swift index 444862a..afba5bb 100644 --- a/Tests/FlowAccessAPIOnSandboxTests.swift +++ b/Tests/FlowAccessAPIOnPreviewnetTests.swift @@ -11,13 +11,13 @@ import CryptoKit import Foundation import XCTest -final class FlowAccessAPIOnSandboxTests: XCTestCase { +final class FlowAccessAPIOnPreviewnetTests: XCTestCase { var flowAPI: FlowAccessProtocol! override func setUp() { super.setUp() - flowAPI = flow.createHTTPAccessAPI(chainID: .sandboxnet) - flow.configure(chainID: .sandboxnet) + flowAPI = flow.createHTTPAccessAPI(chainID: .previewnet) + flow.configure(chainID: .previewnet) } func testFlowPing() async throws { @@ -27,7 +27,7 @@ final class FlowAccessAPIOnSandboxTests: XCTestCase { func testNetworkParameters() async throws { let chainID = try await flowAPI.getNetworkParameters() - XCTAssertEqual(chainID, Flow.ChainID.sandboxnet) + XCTAssertEqual(chainID, Flow.ChainID.previewnet) } func testFlowAccount() async throws { diff --git a/Tests/FlowAddressTest.swift b/Tests/FlowAddressTest.swift index 263f95a..a65c312 100644 --- a/Tests/FlowAddressTest.swift +++ b/Tests/FlowAddressTest.swift @@ -24,10 +24,10 @@ final class FlowAddressTest: XCTestCase { XCTAssertEqual(true, isVaild) } - func testAddressHexTypeSandboxnet() async throws { - let isVaild = await flow.isAddressVaildate(address: "0x4e8e130b4fb9aee2", network: .sandboxnet) - XCTAssertEqual(true, isVaild) - } +// func testAddressHexTypeSandboxnet() async throws { +// let isVaild = await flow.isAddressVaildate(address: "0x4e8e130b4fb9aee2", network: .sandboxnet) +// XCTAssertEqual(true, isVaild) +// } func testAddressHexTypeTestnet() async throws { let isVaild = await flow.isAddressVaildate(address: "0xc6de0d94160377cd", network: .testnet)