From 12816bbdcd20d7d8ac330e1196651816aed34a4b Mon Sep 17 00:00:00 2001 From: JSKitty Date: Thu, 5 Dec 2024 10:47:21 +0000 Subject: [PATCH] Apply patch --- tests/unit/wallet/transactions.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/unit/wallet/transactions.spec.js b/tests/unit/wallet/transactions.spec.js index 7f4bbed31..4a26676a3 100644 --- a/tests/unit/wallet/transactions.spec.js +++ b/tests/unit/wallet/transactions.spec.js @@ -208,11 +208,11 @@ describe('Wallet transaction tests', () => { await checkFees(wallet, tx, MIN_FEE_PER_BYTE); }); - it('Creates a cold stake tx with max balance', async () => { + it('Creates a tx with max balance', async () => { const tx = wallet.createTransaction( 'SR3L4TFUKKGNsnv2Q4hWTuET2a4vHpm1b9', legacyMainnetInitialBalance(), - { isDelegation: true } + { isDelegation: false } ); expect(tx.version).toBe(1); expect(tx.vin).toHaveLength(2); @@ -225,15 +225,15 @@ describe('Wallet transaction tests', () => { scriptSig: '76a914f49b25384b79685227be5418f779b98a6be4c73888ac', // Script sig must be the UTXO script since it's not signed }) ); + expect(tx.vout).toHaveLength(1); + const fees = await checkFees(wallet, tx, MIN_FEE_PER_BYTE); // The 'after split' output expect(tx.vout[0]).toStrictEqual( new CTxOut({ - script: '76a97b63d114291a25b5b4d1802e0611e9bf724a1e57d9210e826714f49b25384b79685227be5418f779b98a6be4c7386888ac', - value: 50009999246, + script: '76a914291a25b5b4d1802e0611e9bf724a1e57d9210e8288ac', + value: legacyMainnetInitialBalance() - fees, }) ); - // Cold Stake split outputs - expect(tx.vout).toHaveLength(20); }); it('creates a t->s tx correctly', () => {