Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
debjit-bw committed Oct 13, 2024
1 parent 6d0012c commit f621653
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/generate_test_vectors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit f621653

Please sign in to comment.