mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Add no_gateway option to UInt160's to_json().
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user