Skip to content

Commit 9047264

Browse files
Merge branch 'get-block-with-txs' into feat/239-tip-auto-estimation
2 parents 65974a4 + 78a0f72 commit 9047264

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

Tests/NetworkTests/Providers/ProviderTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ final class ProviderTests: XCTestCase {
1212
override func setUp() async throws {
1313
try await super.setUp()
1414

15+
// TODO: Change this to internal node
1516
provider = StarknetProvider(url: "https://rpc.pathfinder.equilibrium.co/testnet-sepolia/rpc/v0_9")
1617
}
1718

Tests/StarknetTests/Providers/ProviderTests.swift

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -399,26 +399,4 @@ final class ProviderTests: XCTestCase {
399399
XCTFail("Expected .preConfirmed")
400400
}
401401
}
402-
403-
func testGetBlockWithTxsWithBlockHash() async throws {
404-
let blockHash = Felt(fromHex: "0x05d95c778dad488e15f6a279c77c59322ad61eabf085cd8624ff5b39ca5ae8d8")!
405-
let result = try await provider.send(request: RequestBuilder.getBlockWithTxs(blockHash))
406-
407-
if case let .processed(processedBlock) = result {
408-
XCTAssertEqual(processedBlock.transactions.count, 7)
409-
} else {
410-
XCTFail("Expected .processed")
411-
}
412-
}
413-
414-
func testGetBlockWithTxsWithBlockNumber() async throws {
415-
let blockNumber = 1_210_000
416-
let result = try await provider.send(request: RequestBuilder.getBlockWithTxs(blockNumber))
417-
418-
if case let .processed(processedBlock) = result {
419-
XCTAssertEqual(processedBlock.transactions.count, 8)
420-
} else {
421-
XCTFail("Expected .processed")
422-
}
423-
}
424402
}

0 commit comments

Comments
 (0)