From 4fa726f2d38bf8b6fc35c30472d814eb0d959032 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 2 Feb 2013 13:11:54 -0800 Subject: [PATCH] Add no_gateway option to UInt160's to_json(). --- src/js/uint160.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/uint160.js b/src/js/uint160.js index 12c7ff04c6..ee17524dc6 100644 --- a/src/js/uint160.js +++ b/src/js/uint160.js @@ -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; };