Browse Source

Test setVersion

psbt
Luke Childs 6 years ago
parent
commit
09a6c37430
  1. 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…
Cancel
Save