Skip to content

Commit 65a5ec1

Browse files
authored
chore: fix incorrect Keccak hash formatting in validPCR0s call (#75)
1 parent 5232491 commit 65a5ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pcr0-verifier/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ echo -e "\n# Then run these commands to verify:"
1717
echo "# To register a new PCR0 (requires owner access):"
1818
echo "cast send \$SYSTEM_CONFIG_GLOBAL_ADDRESS 'registerPCR0(bytes)' ${PCR0_WITH_PREFIX} --rpc-url \$RPC_URL"
1919
echo -e "\n# To check if a PCR0 is valid:"
20-
echo "cast call \$SYSTEM_CONFIG_GLOBAL_ADDRESS 'validPCR0s(bytes32)' \$(cast keccak ${PCR0_WITH_PREFIX}) --rpc-url \$RPC_URL"
20+
echo "cast call \$SYSTEM_CONFIG_GLOBAL_ADDRESS 'validPCR0s(bytes32)' 0x\$(cast keccak \${PCR0}) --rpc-url \$RPC_URL"

0 commit comments

Comments
 (0)