diff --git a/Package.resolved b/Package.resolved index 793cc84..b4c8671 100644 --- a/Package.resolved +++ b/Package.resolved @@ -5,8 +5,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/hyperledger/aries-uniffi-wrappers", "state" : { - "revision" : "f335e392d6c5b8bd4dfa65746f214b80cdc60551", - "version" : "0.2.0" + "revision" : "01def706b44a4095032cd42f0480a5bdfb809961", + "version" : "0.2.1" } }, { diff --git a/Package.swift b/Package.swift index dea0ea7..eb819b9 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,7 @@ let package = Package( targets: ["AriesFramework"]) ], dependencies: [ - .package(url: "https://github.com/hyperledger/aries-uniffi-wrappers", exact: "0.2.0"), + .package(url: "https://github.com/hyperledger/aries-uniffi-wrappers", exact: "0.2.1"), .package(url: "https://github.com/bhsw/concurrent-ws", exact: "0.5.0"), .package(url: "https://github.com/JohnSundell/CollectionConcurrencyKit", exact: "0.2.0"), .package(url: "https://github.com/keefertaylor/Base58Swift", exact: "2.1.7"), diff --git a/Sources/AriesFramework/ledger/LedgerService.swift b/Sources/AriesFramework/ledger/LedgerService.swift index ed9d2fc..d515550 100644 --- a/Sources/AriesFramework/ledger/LedgerService.swift +++ b/Sources/AriesFramework/ledger/LedgerService.swift @@ -49,8 +49,11 @@ public class LedgerService { throw AriesFrameworkError.frameworkError("Pool opening failed: \(error)") } - let status = try await self.pool!.getStatus() - logger.debug("Pool status: \(status)") + Task { + try await self.pool?.refresh() + let status = try await self.pool?.getStatus() + logger.debug("Pool status: \(status.debugDescription)") + } } public func registerSchema(did: DidInfo, schemaTemplate: SchemaTemplate) async throws -> String {