@typeberry/jam 0.2.0-661fe38 → 0.2.0-663eeb1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24782,12 +24782,13 @@ class bytes_BytesBlob {
24782
24782
  }
24783
24783
  /** Display a hex-encoded version of this byte blob, but truncated if it's large. */
24784
24784
  toStringTruncated() {
24785
+ const bytes = `${this.raw.length} ${this.raw.length === 1 ? "byte" : "bytes"}`;
24785
24786
  if (this.raw.length > 32) {
24786
24787
  const start = bytesToHexString(this.raw.subarray(0, 16));
24787
24788
  const end = bytesToHexString(this.raw.subarray(this.raw.length - 16));
24788
- return `${start}...${end.substring(2)} (${this.raw.length} bytes)`;
24789
+ return `${start}...${end.substring(2)} (${bytes})`;
24789
24790
  }
24790
- return this.toString();
24791
+ return `${this.toString()} (${bytes})`;
24791
24792
  }
24792
24793
  toJSON() {
24793
24794
  return this.toString();