diff --git a/packages/ripple-binary-codec/src/types/currency.ts b/packages/ripple-binary-codec/src/types/currency.ts index 47fb309f..f5358bb6 100644 --- a/packages/ripple-binary-codec/src/types/currency.ts +++ b/packages/ripple-binary-codec/src/types/currency.ts @@ -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";