diff --git a/__tests__/__fixtures__/http-fixtures.js b/__tests__/__fixtures__/http-fixtures.js index cfb357fc..4cf34d39 100644 --- a/__tests__/__fixtures__/http-fixtures.js +++ b/__tests__/__fixtures__/http-fixtures.js @@ -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', diff --git a/__tests__/integration/multisig.test.js b/__tests__/integration/multisig.test.js index 0130a2c3..d9540822 100644 --- a/__tests__/integration/multisig.test.js +++ b/__tests__/integration/multisig.test.js @@ -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, @@ -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, @@ -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, @@ -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, diff --git a/__tests__/mark_utxos_selected_as_input.test.js b/__tests__/mark_utxos_selected_as_input.test.js index 8c0a2cc6..0a3379f8 100644 --- a/__tests__/mark_utxos_selected_as_input.test.js +++ b/__tests__/mark_utxos_selected_as_input.test.js @@ -109,7 +109,7 @@ describe('mark utxos selected_as_input api', () => { expect(selectSpy).toHaveBeenCalledWith( { index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' }, true, - null, + undefined, ); }); @@ -141,7 +141,7 @@ describe('mark utxos selected_as_input api', () => { expect(selectSpy).toHaveBeenCalledWith( { index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' }, false, - null, + undefined, ); }); @@ -157,7 +157,7 @@ describe('mark utxos selected_as_input api', () => { expect(selectSpy).toHaveBeenCalledWith( { index: 0, txId: '5db0a8c77f818c51cb107532fc1a36785adfa700d81d973fd1f23438b2f3dd74' }, true, - null, + undefined, ); }); diff --git a/__tests__/p2sh/tx-proposal-mint-tokens.test.js b/__tests__/p2sh/tx-proposal-mint-tokens.test.js index 2069f514..d4cd9505 100644 --- a/__tests__/p2sh/tx-proposal-mint-tokens.test.js +++ b/__tests__/p2sh/tx-proposal-mint-tokens.test.js @@ -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 () => { diff --git a/package-lock.json b/package-lock.json index a914b314..45ff36a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,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", @@ -2172,9 +2172,9 @@ "integrity": "sha512-Oi223+iKye5cmPyMIqp64E/ZP+in0JndN/s9uEigmXxt6wRhwciCPbzSY4S2oicy1uNqhv7lLdyUc3O/P3sCzQ==" }, "node_modules/@hathor/wallet-lib": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@hathor/wallet-lib/-/wallet-lib-2.9.0.tgz", - "integrity": "sha512-/AbAJB06XyTxlTLyh8GIAqmLCam4B0iaPR1pqnhsylztYgpvhz6QkXRqJCpH5n7BMnkCk0rhidX8VsoRoKRxDg==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@hathor/wallet-lib/-/wallet-lib-2.14.0.tgz", + "integrity": "sha512-tVVXQ6G03ptDTBspXNpKDjfy92tY7cahnpi+FT+FQ3tkt17kETrQ+JAqntQRMxtFn2/7Qjo7rN13rxODuOTsgQ==", "license": "MIT", "dependencies": { "axios": "1.7.7", diff --git a/package.json b/package.json index 20023b15..8d08fc1b 100644 --- a/package.json +++ b/package.json @@ -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",