Update tests to use Psbt getters
This commit is contained in:
parent
854c601342
commit
5d81b94362
1 changed files with 2 additions and 5 deletions
|
@ -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', () => {
|
||||||
|
|
Loading…
Reference in a new issue