Transaction: remove .outpoint object
This commit is contained in:
parent
569e0d4ff1
commit
c0e5393595
5 changed files with 31 additions and 32 deletions
test
|
@ -51,8 +51,8 @@ describe('Transaction', function() {
|
|||
var input = tx.ins[0]
|
||||
assert.equal(input.sequence, 4294967295)
|
||||
|
||||
assert.equal(input.outpoint.index, 0)
|
||||
assert.equal(input.outpoint.hash.toString('hex'), "344630cbff61fbc362f7e1ff2f11a344c29326e4ee96e787dc0d4e5cc02fd069")
|
||||
assert.equal(input.index, 0)
|
||||
assert.equal(input.hash.toString('hex'), "344630cbff61fbc362f7e1ff2f11a344c29326e4ee96e787dc0d4e5cc02fd069")
|
||||
|
||||
assert.equal(input.script.toHex(), "493046022100ef89701f460e8660c80808a162bbf2d676f40a331a243592c36d6bd1f81d6bdf022100d29c072f1b18e59caba6e1f0b8cadeb373fd33a25feded746832ec179880c23901")
|
||||
})
|
||||
|
@ -118,8 +118,8 @@ describe('Transaction', function() {
|
|||
var input = tx.ins[0]
|
||||
assert.equal(input.sequence, 4294967295)
|
||||
|
||||
assert.equal(input.outpoint.index, 0)
|
||||
assert.equal(input.outpoint.hash.toString('hex'), "576bc3c3285dbdccd8c3cbd8c03e10d7f77a5c839c744f34c3eb00511059b80c")
|
||||
assert.equal(input.index, 0)
|
||||
assert.equal(input.hash.toString('hex'), "576bc3c3285dbdccd8c3cbd8c03e10d7f77a5c839c744f34c3eb00511059b80c")
|
||||
|
||||
assert.equal(input.script, Script.EMPTY)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue