From 5d81b943624bea470e4f092d2d363c68f60081d4 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Sun, 26 Apr 2020 15:01:14 +0700 Subject: [PATCH] Update tests to use Psbt getters --- test/psbt.spec.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/psbt.spec.ts b/test/psbt.spec.ts index 4eb32dc..e0eba81 100644 --- a/test/psbt.spec.ts +++ b/test/psbt.spec.ts @@ -523,12 +523,9 @@ describe(`Psbt`, () => { }); assert.strictEqual(psbt.inputCount, 1); - assert.strictEqual( - (psbt as any).__CACHE.__TX.ins[0].sequence, - 0xffffffff, - ); + assert.strictEqual(psbt.txInputs[0].sequence, 0xffffffff); psbt.setInputSequence(0, 0); - assert.strictEqual((psbt as any).__CACHE.__TX.ins[0].sequence, 0); + assert.strictEqual(psbt.txInputs[0].sequence, 0); }); it('throws if input index is too high', () => {