Skip to content

Commit

Permalink
[trello.com/c/CdfJ7GTd] AdamantTransactionStatusService crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
just-software-dev committed Oct 14, 2024
1 parent a073f05 commit b7bf742
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Adamant/Services/AdamantTransactionStatusService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,26 @@ private extension AdamantTransactionStatusService {
let blockchain: String
}

struct RichTransferData {
final class RichTransferData {
let provider: WalletService
var status: TransactionStatus
var transactions: [String: RichMessageTransaction]
var oldPendingAttempts: Int
var subscription: AnyCancellable?

init(
provider: WalletService,
status: TransactionStatus,
transactions: [String: RichMessageTransaction],
oldPendingAttempts: Int,
subscription: AnyCancellable? = nil
) {
self.provider = provider
self.status = status
self.transactions = transactions
self.oldPendingAttempts = oldPendingAttempts
self.subscription = subscription
}
}

enum TransactionStatusState {
Expand Down

0 comments on commit b7bf742

Please sign in to comment.