Roy Crihfield
72e2e4ce50
- Changes contract tests for EIP-6780 (selfdestruct change) - see cerc-io/ipld-eth-server#264. - Beacon block roots are now injected into the blockchain before processing transactions (https://eips.ethereum.org/EIPS/eip-4788) Reviewed-on: #8 Reviewed-by: jonathanface <jonathanface@noreply.git.vdb.to>
13 lines
347 B
Bash
Executable File
13 lines
347 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
geth_endpoint="${1:-$ETH_HTTP_PATH}"
|
|
|
|
latest_block_hex=$(curl -s $geth_endpoint -X POST -H "Content-Type: application/json" \
|
|
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":42}' | \
|
|
python3 -c 'import json, sys; print(int(json.load(sys.stdin)["result"], 16))' \
|
|
)
|
|
|
|
printf "%d" $latest_block_hex
|