wallet: keep batch action order when sorting with same covenant types

Co-authored-by: Rithvik Vibhu <rithvikvibhu@gmail.com>
This commit is contained in:
Nodari Chkuaselidze 2025-07-11 13:43:26 +04:00
parent 134613b51d
commit 5cf5b0cb53
No known key found for this signature in database
GPG key ID: B018A7BB437D1F05

View file

@ -3890,6 +3890,9 @@ class Wallet extends EventEmitter {
assert(a.length);
assert(b.length);
if (a[0] === b[0])
return 0;
switch (b[0]) {
case 'REVEAL':
case 'REDEEM':