Skip to content

Commit

Permalink
Build correctly on before Swift 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Priva28 authored Jul 22, 2021
1 parent cf38089 commit d19c37d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/NanoSwift/NodeCommunication/NanoNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class NanoNode {

// Async/await methods

#if compiler(>=5.5)

@available(watchOS 8.0, *)
@available(tvOS 15.0, *)
@available(macOS 12.0, *)
Expand Down Expand Up @@ -124,6 +126,8 @@ public class NanoNode {
return data
}

#endif

// Regular ugly completion handler methods

public func getAccountInfo(for account: NanoAccount, completionHandler: @escaping (NanoAccountInfo?, Error?) -> Void) {
Expand Down

0 comments on commit d19c37d

Please sign in to comment.