Roy Crihfield
bc3a7934cf
* refactor vulcanize => cerc * update geth and cerc dependencies * update packages, ginkgo * refactor chain generation * update integration tests, contract, makefile * go embed contract code * rm old readme * move unit tests into package * rm ginkgo where not needed * use tx in ref integrity functions
12 lines
262 B
Bash
Executable File
12 lines
262 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
geth_endpoint="$1"
|
|
|
|
latest_block_hex=$(curl -s $geth_endpoint -X POST -H "Content-Type: application/json" \
|
|
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":42}' | \
|
|
jq -r .result)
|
|
|
|
printf "%d" $latest_block_hex
|