Pass network to Address.toString()
This commit is contained in:
parent
edf4b2a4f5
commit
02cc97b0a1
@ -1 +0,0 @@
|
|||||||
mtLDA41NWe9rLm7nuMvAnTs2SbP49cz1ZR
|
|
||||||
@ -630,7 +630,7 @@ AddressService.prototype._removeInput = function(input, tx, block, index, callba
|
|||||||
}
|
}
|
||||||
|
|
||||||
address.network = self._network;
|
address.network = self._network;
|
||||||
address = address.toString();
|
address = address.toString(self._network);
|
||||||
|
|
||||||
assert(block && block.__ts && block.__height, 'Missing block or block values.');
|
assert(block && block.__ts && block.__height, 'Missing block or block values.');
|
||||||
|
|
||||||
@ -674,7 +674,7 @@ AddressService.prototype._removeOutput = function(output, tx, block, index, call
|
|||||||
}
|
}
|
||||||
|
|
||||||
address.network = self._network;
|
address.network = self._network;
|
||||||
address = address.toString();
|
address = address.toString(self._network);
|
||||||
|
|
||||||
assert(block && block.__ts && block.__height, 'Missing block or block values.');
|
assert(block && block.__ts && block.__height, 'Missing block or block values.');
|
||||||
|
|
||||||
@ -743,7 +743,7 @@ AddressService.prototype._processInput = function(tx, input, index, opts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
address.network = this._network;
|
address.network = this._network;
|
||||||
address = address.toString();
|
address = address.toString(this._network);
|
||||||
|
|
||||||
var txid = tx.txid();
|
var txid = tx.txid();
|
||||||
var timestamp = this._timestamp.getTimestampSync(opts.block.rhash());
|
var timestamp = this._timestamp.getTimestampSync(opts.block.rhash());
|
||||||
@ -781,7 +781,7 @@ AddressService.prototype._processOutput = function(tx, output, index, opts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
address.network = this._network;
|
address.network = this._network;
|
||||||
address = address.toString();
|
address = address.toString(this._network);
|
||||||
|
|
||||||
var txid = tx.txid();
|
var txid = tx.txid();
|
||||||
var timestamp = this._timestamp.getTimestampSync(opts.block.rhash());
|
var timestamp = this._timestamp.getTimestampSync(opts.block.rhash());
|
||||||
|
|||||||
@ -175,7 +175,7 @@ utils.getAddress = function(item, network) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
address.network = network;
|
address.network = network;
|
||||||
return address.toString();
|
return address.toString(network);
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = utils;
|
module.exports = utils;
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
"node": ">=8.0.0"
|
"node": ">=8.0.0"
|
||||||
},
|
},
|
||||||
"author": "BitPay <dev@bitpay.com>",
|
"author": "BitPay <dev@bitpay.com>",
|
||||||
"version": "5.0.3",
|
"version": "5.0.4",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"repository": "git://github.com/oipwg/flocore-node.git",
|
"repository": "git://github.com/oipwg/flocore-node.git",
|
||||||
"homepage": "https://github.com/oipwg/flocore-node",
|
"homepage": "https://github.com/oipwg/flocore-node",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user