Skip to content

Commit

Permalink
feat: remove sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxl committed Mar 28, 2024
1 parent 9979dd2 commit 48bdd68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions Tests/FlowAddressTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48bdd68

Please sign in to comment.