Add no_gateway option to UInt160's to_json().

This commit is contained in:
Arthur Britto
2013-02-02 13:11:54 -08:00
parent 39ba2613d9
commit 4fa726f2d3

View File

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