Skip to content

Commit 5bec65e

Browse files
Merge pull request #5259 from BitGo/BTC-1450.fixup-remove-outputDifference
fix(abstract-utxo): remove outputDifference
2 parents 0e94a4c + caebae1 commit 5bec65e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

modules/abstract-utxo/src/abstractUtxoCoin.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -531,28 +531,6 @@ export abstract class AbstractUtxoCoin extends BaseCoin {
531531
}
532532

533533
/**
534-
<<<<<<< HEAD
535-
* @param first
536-
* @param second
537-
* @returns {Array} All outputs that are in the first array but not in the second
538-
*/
539-
public static outputDifference(first: Output[], second: Output[]): Output[] {
540-
const keyFunc = ({ address, amount }: Output): string => `${address}:${amount}`;
541-
const groupedOutputs = _.groupBy(first, keyFunc);
542-
543-
second.forEach((output) => {
544-
const group = groupedOutputs[keyFunc(output)];
545-
if (group) {
546-
group.pop();
547-
}
548-
});
549-
550-
return _.flatten(_.values(groupedOutputs));
551-
}
552-
553-
/**
554-
=======
555-
>>>>>>> 8cc76f6e8 (refactor(abstract-utxo): factor fixedScript parseTransaction)
556534
* Determine an address' type based on its witness and redeem script presence
557535
* @param addressDetails
558536
*/

0 commit comments

Comments
 (0)