Merge pull request #1575 from bitcoinjs/fixTestSortPubkey
Actually sort pubkeys in test
This commit is contained in:
commit
7622c58365
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') {
|
||||
payment = bitcoin.payments.p2ms({
|
||||
m,
|
||||
pubkeys: keys.map(key => key.publicKey).sort(),
|
||||
pubkeys: keys.map(key => key.publicKey).sort((a, b) => a.compare(b)),
|
||||
network,
|
||||
});
|
||||
} else if (['p2sh', 'p2wsh'].indexOf(type) > -1) {
|
||||
|
|
Loading…
Reference in a new issue