Actually sort pubkeys in test
This commit is contained in:
parent
85ee2a3c5d
commit
c0718a9f7c
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ function createPayment(_type: string, myKeys?: any[], network?: any): any {
|
||||||
if (type.slice(0, 4) === 'p2ms') {
|
if (type.slice(0, 4) === 'p2ms') {
|
||||||
payment = bitcoin.payments.p2ms({
|
payment = bitcoin.payments.p2ms({
|
||||||
m,
|
m,
|
||||||
pubkeys: keys.map(key => key.publicKey).sort(),
|
pubkeys: keys.map(key => key.publicKey).sort((a, b) => a.compare(b)),
|
||||||
network,
|
network,
|
||||||
});
|
});
|
||||||
} else if (['p2sh', 'p2wsh'].indexOf(type) > -1) {
|
} else if (['p2sh', 'p2wsh'].indexOf(type) > -1) {
|
||||||
|
|
Loading…
Reference in a new issue