Skip to content

Commit c0718a9

Browse files
committed
Actually sort pubkeys in test
1 parent 85ee2a3 commit c0718a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/transactions.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ function createPayment(_type: string, myKeys?: any[], network?: any): any {
649649
if (type.slice(0, 4) === 'p2ms') {
650650
payment = bitcoin.payments.p2ms({
651651
m,
652-
pubkeys: keys.map(key => key.publicKey).sort(),
652+
pubkeys: keys.map(key => key.publicKey).sort((a, b) => a.compare(b)),
653653
network,
654654
});
655655
} else if (['p2sh', 'p2wsh'].indexOf(type) > -1) {

0 commit comments

Comments
 (0)