implement and use txOut.scriptPubKey

This commit is contained in:
Wei Lu 2014-03-23 21:34:52 +08:00
parent 5d79b094d4
commit 3d12d3b038
3 changed files with 24 additions and 4 deletions

View file

@ -146,7 +146,7 @@ var Wallet = function (seed, options) {
receive: output,
value: txOut.value,
address: address,
scriptPubKey: convert.bytesToHex(txOut.script.buffer) //TODO: txOut.scriptPubKey()
scriptPubKey: txOut.scriptPubKey()
// timestamp: new Date().getTime() / 1000,
// pending: true
}