Skip to content

Commit 65f3942

Browse files
Release Candidate v0.37.0-rc.1
2 parents 4173e3c + 725d782 commit 65f3942

File tree

6 files changed

+25
-24
lines changed

6 files changed

+25
-24
lines changed

__tests__/__fixtures__/http-fixtures.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ export default {
10011001
name: 'Test 1',
10021002
symbol: 'TST1',
10031003
success: true,
1004+
version: 1, // TokenVersion.DEPOSIT - required for mint/melt operations
10041005
mint: [
10051006
{
10061007
tx_id: '007c9d497135e10dcba984f0b893804d7cb06721c800064cfbe05fafc138faca',

__tests__/integration/multisig.test.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -536,11 +536,11 @@ describe('send tx (HTR)', () => {
536536
timelock: null,
537537
},
538538
txId: expect.any(String),
539-
index: 0,
540-
token: '00',
541-
value: expect.any(Number),
542-
tokenData: 0,
543-
token_data: 0,
539+
index: 2, // mint authority output from create token tx
540+
token: tokenUid,
541+
value: 1,
542+
tokenData: 129,
543+
token_data: 129,
544544
script: expect.any(String),
545545
signed: false,
546546
mine: true,
@@ -552,11 +552,11 @@ describe('send tx (HTR)', () => {
552552
timelock: null,
553553
},
554554
txId: expect.any(String),
555-
index: 2,
556-
token: tokenUid,
557-
value: 1,
558-
tokenData: 129,
559-
token_data: 129,
555+
index: 0, // HTR change output from create token tx
556+
token: '00',
557+
value: expect.any(Number),
558+
tokenData: 0,
559+
token_data: 0,
560560
script: expect.any(String),
561561
signed: false,
562562
mine: true,
@@ -644,7 +644,7 @@ describe('send tx (HTR)', () => {
644644
timelock: null,
645645
type: 'MultiSig',
646646
},
647-
index: 3,
647+
index: 3, // melt authority output from mint tx
648648
mine: true,
649649
script: expect.any(String),
650650
signed: false,
@@ -660,7 +660,7 @@ describe('send tx (HTR)', () => {
660660
timelock: null,
661661
type: 'MultiSig',
662662
},
663-
index: 1,
663+
index: 1, // token output from mint tx
664664
mine: true,
665665
script: expect.any(String),
666666
signed: false,

__tests__/mark_utxos_selected_as_input.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('mark utxos selected_as_input api', () => {
109109
expect(selectSpy).toHaveBeenCalledWith(
110110
{ index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' },
111111
true,
112-
null,
112+
undefined,
113113
);
114114
});
115115

@@ -141,7 +141,7 @@ describe('mark utxos selected_as_input api', () => {
141141
expect(selectSpy).toHaveBeenCalledWith(
142142
{ index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' },
143143
false,
144-
null,
144+
undefined,
145145
);
146146
});
147147

@@ -157,7 +157,7 @@ describe('mark utxos selected_as_input api', () => {
157157
expect(selectSpy).toHaveBeenCalledWith(
158158
{ index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' },
159159
true,
160-
null,
160+
undefined,
161161
);
162162
});
163163

__tests__/p2sh/tx-proposal-mint-tokens.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('mint-tokens tx-proposal api', () => {
8181
})
8282
.set({ 'x-wallet-id': walletId });
8383
expect(response.status).toBe(200);
84-
expect(response.body.error).toContain('Not enough HTR tokens for deposit: 10000000000 required');
84+
expect(response.body.error).toContain('Not enough HTR tokens for deposit or fee: 10000000000 required');
8585
});
8686

8787
it('should return 200 with a valid body selecting address', async () => {

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hathor-wallet-headless",
3-
"version": "0.36.1-rc.2",
3+
"version": "0.36.1",
44
"description": "Hathor Wallet Headless, i.e., without graphical user interface",
55
"main": "index.js",
66
"engines": {
@@ -10,7 +10,7 @@
1010
"dependencies": {
1111
"@dinamonetworks/hsm-dinamo": "4.9.1",
1212
"@hathor/healthcheck-lib": "0.1.0",
13-
"@hathor/wallet-lib": "2.9.0",
13+
"@hathor/wallet-lib": "2.14.0",
1414
"axios": "1.7.7",
1515
"express": "4.18.2",
1616
"express-validator": "6.10.0",

0 commit comments

Comments
 (0)