Fix Rebase issues

This commit is contained in:
Francisco Gindre 2024-02-29 14:32:35 -03:00
parent a9e8a40267
commit 2de88bff76
No known key found for this signature in database
GPG Key ID: 6B61CD8DAA2862B4
2 changed files with 3 additions and 23 deletions

View File

@ -61,7 +61,7 @@ public protocol CombineSynchronizer {
accountIndex: Int,
shieldingThreshold: Zatoshi,
memo: Memo
) -> SinglePublisher<Proposal, Error>
) -> SinglePublisher<Proposal?, Error>
func proposefulfillingPaymentURI(
_ uri: String,

View File

@ -69,24 +69,13 @@ extension CombineSDKSynchronizer: CombineSynchronizer {
}
}
public func proposeTransfer(
accountIndex: Int,
recipient: Recipient,
amount: Zatoshi,
memo: Memo?
) -> SinglePublisher<Proposal, Error> {
AsyncToCombineGateway.executeThrowingAction() {
try await self.synchronizer.proposeTransfer(accountIndex: accountIndex, recipient: recipient, amount: amount, memo: memo)
}
}
public func proposeShielding(
accountIndex: Int,
shieldingThreshold: Zatoshi,
memo: Memo
) -> SinglePublisher<Proposal, Error> {
) -> SinglePublisher<Proposal?, Error> {
AsyncToCombineGateway.executeThrowingAction() {
try await self.synchronizer.proposeShielding(accountIndex: accountIndex, shieldingThreshold: shieldingThreshold, memo: memo)
try await self.synchronizer.proposeShielding(accountIndex: accountIndex, shieldingThreshold: shieldingThreshold, memo: memo, transparentReceiver: nil)
}
}
@ -102,15 +91,6 @@ extension CombineSDKSynchronizer: CombineSynchronizer {
}
}
public func createProposedTransactions(
proposal: Proposal,
spendingKey: UnifiedSpendingKey
) -> SinglePublisher<AsyncThrowingStream<TransactionSubmitResult, Error>, Error> {
AsyncToCombineGateway.executeThrowingAction() {
try await self.synchronizer.createProposedTransactions(proposal: proposal, spendingKey: spendingKey)
}
}
public func proposeTransfer(
accountIndex: Int,
recipient: Recipient,