This commit is contained in:
Mayukha Vadari
2021-06-25 10:27:13 -04:00
parent 32dcd3070a
commit 8cc6f40c6f

View File

@@ -88,7 +88,7 @@ class Currency extends Hash160 {
super(byteBuf ?? Currency.XRP.bytes);
const code = this.bytes.slice(12, 15);
if (this.bytes[0] !== 0 && this.bytes[0] !== 0) {
if (this.bytes[0] !== 0 && this.bytes[1] !== 0) {
this._iso = undefined;
} else if (code.toString("hex") === "000000") {
this._iso = "XRP";