From: Ardis Lu Date: Tue, 21 Apr 2026 07:28:09 +0000 (-0700) Subject: Improve presentation of nested arrays X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=0be7e42f742e5ee749fc312cded2762111b9be32;p=block-hash-calculator Improve presentation of nested arrays --- diff --git a/index.html b/index.html index 7b42bac..6096508 100644 --- a/index.html +++ b/index.html @@ -89,7 +89,7 @@ } else { const { header, encoded, hash } = block?.l1BatchTimestamp && block?.l1BatchNumber ? calculateZkSync(block) : calculate(block); - document.querySelector('#out-header').textContent = `[\n ${header.join(',\n ')}\n]`; + document.querySelector('#out-header').textContent = JSON.stringify(header, (_, v) => typeof v === 'bigint' ? v.toString() : v, 2).replaceAll('"', ''); document.querySelector('#out-encoded').textContent = encoded; document.querySelector('#out-hash').textContent = hash; }