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