Closed darkdarkdragon closed 8 years ago
@clark800 done
I think it might be worth reducing duplication further by making generic methods that take a function parameter, so parseBalanceChanges
would be return parseAmountNodes(metadata, computeBalanceChange)
etc. The computeBalanceChanges
function could return null
when there is no change as a signal to omit it from the result.
@clark800 I'll squash it if it is ok
LGTM
Just like parseBalanceChanges, except the values are the final balances rather than the balance changes.