Update Sources/ZcashLightClientKit/Model/Proposal.swift

Co-authored-by: str4d <thestr4d@gmail.com>
This commit is contained in:
Lukas Korba 2024-02-29 15:46:07 +01:00 committed by GitHub
parent a01205b408
commit bbdfc2c48c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -18,8 +18,10 @@ public struct Proposal: Equatable {
}
public extension Proposal {
/// IMPORTANT: Use of this function is for testing purposes only, not recommended to use in production.
/// The instance of `Proposal` should never be created on client's side.
/// IMPORTANT: This function is for testing purposes only. It produces fake invalid
/// data that can be used to check UI elements, but will always produce an error when
/// passed to `Synchronizer.createProposedTransactions`. It should never be called in
/// production code.
static func testOnlyFakeProposal(totalFee: UInt64) -> Self {
var ffiProposal = FfiProposal()
var balance = FfiTransactionBalance()