Test setLocktime
This commit is contained in:
parent
09a6c37430
commit
871e587711
1 changed files with 10 additions and 0 deletions
10
test/psbt.js
10
test/psbt.js
|
@ -188,4 +188,14 @@ describe(`Psbt`, () => {
|
|||
assert.strictEqual(psbt.extractTransaction().version, 1)
|
||||
})
|
||||
})
|
||||
|
||||
describe('setLocktime', () => {
|
||||
it('Sets the nLockTime value of the unsigned transaction', () => {
|
||||
const psbt = new Psbt()
|
||||
|
||||
assert.strictEqual(psbt.extractTransaction().locktime, 0)
|
||||
psbt.setLocktime(1)
|
||||
assert.strictEqual(psbt.extractTransaction().locktime, 1)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue