Skip to content

Commit 5d81b94

Browse files
committed
Update tests to use Psbt getters
1 parent 854c601 commit 5d81b94

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/psbt.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -523,12 +523,9 @@ describe(`Psbt`, () => {
523523
});
524524

525525
assert.strictEqual(psbt.inputCount, 1);
526-
assert.strictEqual(
527-
(psbt as any).__CACHE.__TX.ins[0].sequence,
528-
0xffffffff,
529-
);
526+
assert.strictEqual(psbt.txInputs[0].sequence, 0xffffffff);
530527
psbt.setInputSequence(0, 0);
531-
assert.strictEqual((psbt as any).__CACHE.__TX.ins[0].sequence, 0);
528+
assert.strictEqual(psbt.txInputs[0].sequence, 0);
532529
});
533530

534531
it('throws if input index is too high', () => {

0 commit comments

Comments
 (0)