From f6216533999e47e905a77761c593fbf57a745937 Mon Sep 17 00:00:00 2001 From: debjit Date: Sun, 13 Oct 2024 12:50:48 +0530 Subject: [PATCH] format --- scripts/generate_test_vectors.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/generate_test_vectors.sh b/scripts/generate_test_vectors.sh index 5e6a29b..5588035 100755 --- a/scripts/generate_test_vectors.sh +++ b/scripts/generate_test_vectors.sh @@ -31,8 +31,17 @@ BLOCK_COUNTER=0 ((BLOCK_COUNTER++)) HEAD_BLOCK=$(curl -X POST -H "Content-Type: application/json" \ - --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' \ - http://localhost:8545) + --data "{ + \"jsonrpc\":\"2.0\", + \"method\":\"eth_getBlockByNumber\", + \"params\":[ + \"latest\", + false + ], + \"id\":1 + }" \ + http://localhost:8545 \ +) # --raw-output remove the double quotes HEAD_BLOCK_HASH=$(echo $HEAD_BLOCK | jq --raw-output '.result.hash')