From 4e260419e1e07af094e9795f47f350a9d4008383 Mon Sep 17 00:00:00 2001 From: Francisco Gindre Date: Fri, 15 Jul 2022 16:54:25 -0300 Subject: [PATCH] [#428] make some helpers publicly accessible (#429) Closes #428} Helpers that were internal to Secant now are missing when we moved them to ZcashLightClientKit. This commit fixes that --- Sources/ZcashLightClientKit/Model/WalletTypes.swift | 2 +- Sources/ZcashLightClientKit/Model/Zatoshi.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ZcashLightClientKit/Model/WalletTypes.swift b/Sources/ZcashLightClientKit/Model/WalletTypes.swift index 0e650f77..80bc74fc 100644 --- a/Sources/ZcashLightClientKit/Model/WalletTypes.swift +++ b/Sources/ZcashLightClientKit/Model/WalletTypes.swift @@ -25,7 +25,7 @@ public protocol UnifiedAddress { var zAddress: SaplingShieldedAddress { get } } -public struct WalletBalance { +public struct WalletBalance: Equatable { public var verified: Zatoshi public var total: Zatoshi diff --git a/Sources/ZcashLightClientKit/Model/Zatoshi.swift b/Sources/ZcashLightClientKit/Model/Zatoshi.swift index aaf6ba89..00e26efb 100644 --- a/Sources/ZcashLightClientKit/Model/Zatoshi.swift +++ b/Sources/ZcashLightClientKit/Model/Zatoshi.swift @@ -16,7 +16,7 @@ public struct Zatoshi { public static var zero: Zatoshi { Zatoshi() } - static let decimalHandler = NSDecimalNumberHandler( + public static let decimalHandler = NSDecimalNumberHandler( roundingMode: NSDecimalNumber.RoundingMode.bankers, scale: 8, raiseOnExactness: true,