Actually sort pubkeys in test

This commit is contained in:
junderw 2020-05-22 08:14:30 +09:00
parent 85ee2a3c5d
commit c0718a9f7c
No known key found for this signature in database
GPG key ID: B256185D3A971908

View file

@ -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) {