Transaction: support non-addressable output scripts
This commit is contained in:
parent
5bd636cab7
commit
867465a03f
2 changed files with 24 additions and 6 deletions
test
|
@ -142,6 +142,11 @@ describe('Transaction', function() {
|
|||
verifyTransactionOut()
|
||||
})
|
||||
|
||||
it('allows a scriptPubKey and a value to be passed in', function() {
|
||||
tx.addOutput(Address.fromBase58Check('15mMHKL96tWAUtqF3tbVf99Z8arcmnJrr3').toOutputScript(), 40000)
|
||||
verifyTransactionOut()
|
||||
})
|
||||
|
||||
it('supports alternative networks', function() {
|
||||
var addr = 'mkHJaNR7uuwRG1JrmTZsV4MszaTKjCBvCR'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue