Updates network.js constant names

This commit is contained in:
Daniel Cousens 2014-04-17 05:43:34 +10:00
parent ed28c6adcf
commit f047afef2d
12 changed files with 68 additions and 58 deletions

View file

@ -369,8 +369,8 @@ Script.prototype.writeBytes = function(data) {
Script.createOutputScript = function(address) {
var script = new Script()
address = new Address(address)
if (address.version == network.mainnet.p2shVersion ||
address.version == network.testnet.p2shVersion) {
if (address.version == network.bitcoin.scriptHash ||
address.version == network.testnet.scriptHash) {
// Standard pay-to-script-hash
script.writeOp(Opcode.map.OP_HASH160)
script.writeBytes(address.hash)