wallet: rename utxo.receive to utxo.from

This commit is contained in:
Wei Lu 2014-06-18 14:34:53 +08:00
parent 7e98123ccd
commit 7e31668b69
2 changed files with 7 additions and 7 deletions

View file

@ -184,7 +184,7 @@ describe('Wallet', function() {
function addUtxoToOutput(utxo){
var key = utxo.hash + ":" + utxo.outputIndex
wallet.outputs[key] = {
receive: key,
from: key,
address: utxo.address,
value: utxo.value,
pending: utxo.pending
@ -352,7 +352,7 @@ describe('Wallet', function() {
var txOut = tx.outs[index]
var key = tx.getId() + ":" + index
var output = wallet.outputs[key]
assert.equal(output.receive, key)
assert.equal(output.from, key)
assert.equal(output.value, txOut.value)
assert.equal(output.pending, pending)