From 65e380d6f73b8ca83da48b87d41f1e84bb3685a8 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 12c7ff04..ee17524d 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; };