Updates network.js constant names
This commit is contained in:
parent
ed28c6adcf
commit
f047afef2d
12 changed files with 68 additions and 58 deletions
src
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue