Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions __tests__/__fixtures__/http-fixtures.js
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ export default {
name: 'Test 1',
symbol: 'TST1',
success: true,
version: 1, // TokenVersion.DEPOSIT - required for mint/melt operations
mint: [
{
tx_id: '007c9d497135e10dcba984f0b893804d7cb06721c800064cfbe05fafc138faca',
Expand Down
24 changes: 12 additions & 12 deletions __tests__/integration/multisig.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,11 +536,11 @@ describe('send tx (HTR)', () => {
timelock: null,
},
txId: expect.any(String),
index: 0,
token: '00',
value: expect.any(Number),
tokenData: 0,
token_data: 0,
index: 2, // mint authority output from create token tx
token: tokenUid,
value: 1,
tokenData: 129,
token_data: 129,
script: expect.any(String),
signed: false,
mine: true,
Expand All @@ -552,11 +552,11 @@ describe('send tx (HTR)', () => {
timelock: null,
},
txId: expect.any(String),
index: 2,
token: tokenUid,
value: 1,
tokenData: 129,
token_data: 129,
index: 0, // HTR change output from create token tx
token: '00',
value: expect.any(Number),
tokenData: 0,
token_data: 0,
script: expect.any(String),
signed: false,
mine: true,
Expand Down Expand Up @@ -644,7 +644,7 @@ describe('send tx (HTR)', () => {
timelock: null,
type: 'MultiSig',
},
index: 3,
index: 3, // melt authority output from mint tx
mine: true,
script: expect.any(String),
signed: false,
Expand All @@ -660,7 +660,7 @@ describe('send tx (HTR)', () => {
timelock: null,
type: 'MultiSig',
},
index: 1,
index: 1, // token output from mint tx
mine: true,
script: expect.any(String),
signed: false,
Expand Down
6 changes: 3 additions & 3 deletions __tests__/mark_utxos_selected_as_input.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('mark utxos selected_as_input api', () => {
expect(selectSpy).toHaveBeenCalledWith(
{ index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' },
true,
null,
undefined,
);
});

Expand Down Expand Up @@ -141,7 +141,7 @@ describe('mark utxos selected_as_input api', () => {
expect(selectSpy).toHaveBeenCalledWith(
{ index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' },
false,
null,
undefined,
);
});

Expand All @@ -157,7 +157,7 @@ describe('mark utxos selected_as_input api', () => {
expect(selectSpy).toHaveBeenCalledWith(
{ index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' },
true,
null,
undefined,
);
});

Expand Down
2 changes: 1 addition & 1 deletion __tests__/p2sh/tx-proposal-mint-tokens.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('mint-tokens tx-proposal api', () => {
})
.set({ 'x-wallet-id': walletId });
expect(response.status).toBe(200);
expect(response.body.error).toContain('Not enough HTR tokens for deposit: 10000000000 required');
expect(response.body.error).toContain('Not enough HTR tokens for deposit or fee: 10000000000 required');
});

it('should return 200 with a valid body selecting address', async () => {
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hathor-wallet-headless",
"version": "0.36.1-rc.2",
"version": "0.36.1",
"description": "Hathor Wallet Headless, i.e., without graphical user interface",
"main": "index.js",
"engines": {
Expand All @@ -10,7 +10,7 @@
"dependencies": {
"@dinamonetworks/hsm-dinamo": "4.9.1",
"@hathor/healthcheck-lib": "0.1.0",
"@hathor/wallet-lib": "2.9.0",
"@hathor/wallet-lib": "2.14.0",
"axios": "1.7.7",
"express": "4.18.2",
"express-validator": "6.10.0",
Expand Down