Transaction: remove address from txOut
This commit is contained in:
parent
5551c38812
commit
f85792ba22
3 changed files with 23 additions and 17 deletions
test
|
@ -143,12 +143,13 @@ describe('Transaction', function() {
|
|||
})
|
||||
|
||||
it('supports alternative networks', function() {
|
||||
var addr = 'mkHJaNR7uuwRG1JrmTZsV4MszaTKjCBvCR'
|
||||
var address = Address.fromBase58Check('mkHJaNR7uuwRG1JrmTZsV4MszaTKjCBvCR')
|
||||
var script = address.toOutputScript()
|
||||
|
||||
tx.addOutput(addr, 40000)
|
||||
tx.addOutput(address, 40000)
|
||||
verifyTransactionOut()
|
||||
|
||||
assert.equal(tx.outs[0].address.toString(), addr)
|
||||
assert.deepEqual(tx.outs[0].script, script)
|
||||
})
|
||||
|
||||
function verifyTransactionOut() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue