diff --git a/src/js/ripple/serializedtypes.js b/src/js/ripple/serializedtypes.js index a854ee97..65735c88 100644 --- a/src/js/ripple/serializedtypes.js +++ b/src/js/ripple/serializedtypes.js @@ -256,9 +256,12 @@ var STCurrency = new SerializedType({ parse: function (so) { var bytes = so.read(20); var currency = Currency.from_bytes(bytes); - if (!currency.is_valid()) { - throw new Error("Invalid currency: "+convert_bytes_to_hex(bytes)); - } + // XXX Disabled check. Theoretically, the Currency class should support any + // UInt160 value and consider it valid. But it doesn't, so for the + // deserialization to be usable, we need to allow invalid results for now. + //if (!currency.is_valid()) { + // throw new Error("Invalid currency: "+convert_bytes_to_hex(bytes)); + //} return currency; } });