Skip to content

Commit

Permalink
[IVY-2910] Fix Incorrect Balance Transfer (#3099)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwa-Raghavendra committed Apr 7, 2024
1 parent f3181bd commit 57feb30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object AccountValueFunctions {
transaction: Transaction,
accountId: UUID
): BigDecimal = with(transaction) {
if (this.getAccountId() == accountId && this is Transfer) {
if (this is Transfer && this.toAccount.value == accountId) {
this.toValue.amount.value.toBigDecimal()
} else {
BigDecimal.ZERO
Expand Down

0 comments on commit 57feb30

Please sign in to comment.