Browse Source

Address: remove circular dependency fix

This is no longer a problem.
hk-custom-address
Daniel Cousens 11 years ago
parent
commit
342c55c864
  1. 4
      src/address.js

4
src/address.js

@ -1,6 +1,7 @@
var assert = require('assert') var assert = require('assert')
var base58check = require('./base58check') var base58check = require('./base58check')
var networks = require('./networks') var networks = require('./networks')
var Script = require('./script')
function findScriptTypeByVersion(queryVersion) { function findScriptTypeByVersion(queryVersion) {
for (var networkName in networks) { for (var networkName in networks) {
@ -77,6 +78,3 @@ Address.prototype.toScriptPubKey = function() {
Address.prototype.toString = Address.prototype.toBase58Check Address.prototype.toString = Address.prototype.toBase58Check
module.exports = Address module.exports = Address
// http://stackoverflow.com/a/14098262
var Script = require('./script')

Loading…
Cancel
Save