Update tests to use Psbt getters

This commit is contained in:
Luke Childs 2020-04-26 15:01:14 +07:00
parent 854c601342
commit 5d81b94362

View file

@ -523,12 +523,9 @@ describe(`Psbt`, () => {
}); });
assert.strictEqual(psbt.inputCount, 1); assert.strictEqual(psbt.inputCount, 1);
assert.strictEqual( assert.strictEqual(psbt.txInputs[0].sequence, 0xffffffff);
(psbt as any).__CACHE.__TX.ins[0].sequence,
0xffffffff,
);
psbt.setInputSequence(0, 0); 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', () => { it('throws if input index is too high', () => {