Add no_gateway option to UInt160's to_json().

This commit is contained in:
Arthur Britto
2013-02-02 13:11:54 -08:00
committed by Stefan Thomas
parent 49af9f20d9
commit 65e380d6f7

View File

@@ -59,8 +59,8 @@ UInt160.prototype.to_json = function (opts) {
var output = Base.encode_check(Base.VER_ACCOUNT_ID, this.to_bytes());
if (opts.gateways && output in opts.gateways)
output = opts.gateways[output];
if (config.gateways && output in config.gateways && !opts.no_gateway)
output = config.gateways[output];
return output;
};