diff --git a/Sources/ZcashLightClientKit/Constants/ZcashSDK.swift b/Sources/ZcashLightClientKit/Constants/ZcashSDK.swift index 891a492a..c6450a17 100644 --- a/Sources/ZcashLightClientKit/Constants/ZcashSDK.swift +++ b/Sources/ZcashLightClientKit/Constants/ZcashSDK.swift @@ -11,7 +11,7 @@ public protocol ZcashNetwork { var constants: NetworkConstants.Type { get } } -public enum NetworkType { +public enum NetworkType: Equatable, Codable { case mainnet case testnet diff --git a/Sources/ZcashLightClientKit/Model/WalletTypes.swift b/Sources/ZcashLightClientKit/Model/WalletTypes.swift index ec1ca947..cf478000 100644 --- a/Sources/ZcashLightClientKit/Model/WalletTypes.swift +++ b/Sources/ZcashLightClientKit/Model/WalletTypes.swift @@ -170,7 +170,7 @@ public struct SaplingAddress: Equatable, StringEncoded { } } -public struct UnifiedAddress: Equatable, StringEncoded { +public struct UnifiedAddress: Equatable, StringEncoded, Codable { let networkType: NetworkType public enum ReceiverTypecodes: Hashable {