Transaction: remove TxIn/TxOut from API
This commit is contained in:
parent
a6b9dd9473
commit
5bd636cab7
2 changed files with 6 additions and 36 deletions
test
|
@ -118,15 +118,6 @@ describe('Transaction', function() {
|
|||
verifyTransactionIn()
|
||||
})
|
||||
|
||||
it('allows a TransactionIn object to be passed in', function() {
|
||||
var txCopy = tx.clone()
|
||||
txCopy.addInput(prevTx, 0)
|
||||
var transactionIn = txCopy.ins[0]
|
||||
|
||||
tx.addInput(transactionIn)
|
||||
verifyTransactionIn()
|
||||
})
|
||||
|
||||
function verifyTransactionIn() {
|
||||
assert.equal(tx.ins.length, 1)
|
||||
|
||||
|
@ -151,15 +142,6 @@ describe('Transaction', function() {
|
|||
verifyTransactionOut()
|
||||
})
|
||||
|
||||
it('allows a TransactionOut object to be passed in', function() {
|
||||
var txCopy = tx.clone()
|
||||
txCopy.addOutput("15mMHKL96tWAUtqF3tbVf99Z8arcmnJrr3", 40000)
|
||||
var transactionOut = txCopy.outs[0]
|
||||
|
||||
tx.addOutput(transactionOut)
|
||||
verifyTransactionOut()
|
||||
})
|
||||
|
||||
it('supports alternative networks', function() {
|
||||
var addr = 'mkHJaNR7uuwRG1JrmTZsV4MszaTKjCBvCR'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue