@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.
@@ -3618,12 +3618,13 @@ class bytes_BytesBlob {
3618
3618
  }
3619
3619
  /** Display a hex-encoded version of this byte blob, but truncated if it's large. */
3620
3620
  toStringTruncated() {
3621
+ const bytes = `${this.raw.length} ${this.raw.length === 1 ? "byte" : "bytes"}`;
3621
3622
  if (this.raw.length > 32) {
3622
3623
  const start = bytesToHexString(this.raw.subarray(0, 16));
3623
3624
  const end = bytesToHexString(this.raw.subarray(this.raw.length - 16));
3624
- return `${start}...${end.substring(2)} (${this.raw.length} bytes)`;
3625
+ return `${start}...${end.substring(2)} (${bytes})`;
3625
3626
  }
3626
- return this.toString();
3627
+ return `${this.toString()} (${bytes})`;
3627
3628
  }
3628
3629
  toJSON() {
3629
3630
  return this.toString();