Skip to content

Commit b3e44ee

Browse files
committed
Fix timeout issue
1 parent 05d6e9d commit b3e44ee

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Sources/Models/FlowId.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ public extension Flow.ID {
9898

9999
let result = try await awaitPublisher(
100100
ws.subscribeToTransactionStatus(txId: self)
101-
.filter{ $0.payload?.transactionResult.status ?? .unknown > status }
102-
.first()
103-
.eraseToAnyPublisher()
101+
.filter{ $0.payload?.transactionResult.status ?? .unknown >= status }
104102
,
105103
timeout: timeout
106104
)

Tests/FlowAccessAPIOnTestnetTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ final class FlowAccessAPIOnTestnetTests: XCTestCase {
145145
print("txid --> \(txId.hex)")
146146
XCTAssertNotNil(txId)
147147

148-
let result = try await txId.onceExecuted()
148+
let result = try await txId.onceSealed()
149149
let address = result.getCreatedAddress()!
150150
print("address --> \(address)")
151151
XCTAssertNotNil(address)

0 commit comments

Comments
 (0)