This commit is contained in:
goldsquid
2026-01-31 11:26:01 +07:00
parent eafbb2e2c3
commit 376b1a750f

View File

@@ -62,8 +62,11 @@ for path in $pathlist; do
echo "error: could not parse rollup version from Aztec node" echo "error: could not parse rollup version from Aztec node"
exit 1 exit 1
fi fi
# Convert hex (e.g. 0x950a893d) to decimal for JSON lookup # Version is a 32-byte hash (0x...); rollup_version in JSON is the low 32 bits as decimal.
version_decimal=$((16#${version_hex#0x})) # Strip 0x, take last 8 hex chars, convert to integer for comparison.
version_hex="${version_hex#0x}"
version_hex="${version_hex: -8}"
version_decimal=$((16#$version_hex))
ref=$($BASEPATH/reference-rpc-endpoint.sh --rollup-version "$version_decimal") ref=$($BASEPATH/reference-rpc-endpoint.sh --rollup-version "$version_decimal")
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "error: no reference endpoint for Aztec rollup_version $version_decimal" echo "error: no reference endpoint for Aztec rollup_version $version_decimal"