Skip to content

Commit

Permalink
Treat only "general" with transfers as "transfer" (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
kugel3 authored Feb 2, 2024
1 parent f029422 commit 8cf5ce8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ extension TransactionReview {
case nil:
return nil
case .general, .transfer:
if summary.detailedManifestClass == .general {
guard !summary.accountDeposits.isEmpty || !summary.accountWithdraws.isEmpty else { return nil }
}

let resourcesInfo = try await resourcesInfo(allAddresses.elements)
let withdrawals = try await extractWithdrawals(
accountWithdraws: summary.accountWithdraws,
Expand Down

0 comments on commit 8cf5ce8

Please sign in to comment.