|
|
@ -22,6 +22,10 @@ var Hash = require('./crypto/hash'); |
|
|
|
*/ |
|
|
|
function Address(data, network, type) { |
|
|
|
|
|
|
|
if (!(this instanceof Address)) { |
|
|
|
return new Address(data, network, type); |
|
|
|
} |
|
|
|
|
|
|
|
if (!data) { |
|
|
|
throw new TypeError('First argument is required, please include address data.'); |
|
|
|
} |
|
|
@ -346,5 +350,4 @@ Address.prototype.inspect = function() { |
|
|
|
return '<Address: ' + this.toString() + ', type: '+this.type+', network: '+this.network+'>'; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
module.exports = Address; |
|
|
|