From 48bdd682089c7ed74086588dedebf094bf64c378 Mon Sep 17 00:00:00 2001 From: cat Date: Fri, 29 Mar 2024 06:56:13 +0800 Subject: [PATCH] feat: remove sandbox --- ...oxTests.swift => FlowAccessAPIOnPreviewnetTests.swift} | 8 ++++---- Tests/FlowAddressTest.swift | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) rename Tests/{FlowAccessAPIOnSandboxTests.swift => FlowAccessAPIOnPreviewnetTests.swift} (83%) 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)