Skip to content

Commit

Permalink
Merge pull request #442 from KeefeL/diff_accouts
Browse files Browse the repository at this point in the history
ignore empty tx in GetDiffAccountsWithScope
  • Loading branch information
keefel authored Oct 11, 2021
2 parents 03febe1 + 0315f60 commit 59d3b53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,10 @@ func (s *PublicBlockChainAPI) GetDiffAccountsWithScope(ctx context.Context, bloc
delete(diffTx.Accounts, account)
}
}
result.Transactions = append(result.Transactions, diffTx)

if len(diffTx.Accounts) != 0 {
result.Transactions = append(result.Transactions, diffTx)
}
}
}

Expand Down

0 comments on commit 59d3b53

Please sign in to comment.