Skip to content

Commit

Permalink
from_account_uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasKorba committed Dec 10, 2024
1 parent ce13ca2 commit 985e677
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/ZcashLightClientKit/Entity/TransactionEntity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public enum ZcashTransaction {
public let rawID: Data
public let pool: Pool
public let index: Int
public let fromAccount: AccountId?
public let fromAccount: AccountUUID?
public let recipient: TransactionRecipient
public let value: Zatoshi
public let isChange: Bool
Expand All @@ -106,7 +106,7 @@ extension ZcashTransaction.Output {
static let pool = SQLite.Expression<Int>("output_pool")
static let index = SQLite.Expression<Int>("output_index")
static let toAccount = SQLite.Expression<Blob?>("to_account_uuid")
static let fromAccount = SQLite.Expression<Int?>("from_account_id")
static let fromAccount = SQLite.Expression<Blob?>("from_account_uuid")
static let toAddress = SQLite.Expression<String?>("to_address")
static let value = SQLite.Expression<Int64>("value")
static let isChange = SQLite.Expression<Bool>("is_change")
Expand All @@ -119,7 +119,7 @@ extension ZcashTransaction.Output {
pool = .init(rawValue: try row.get(Column.pool))
index = try row.get(Column.index)
if let accountId = try row.get(Column.fromAccount) {
fromAccount = AccountId(accountId)
fromAccount = AccountUUID(id: [UInt8](Data(blob: accountId)))
} else {
fromAccount = nil
}
Expand Down

0 comments on commit 985e677

Please sign in to comment.