Skip to content

Commit

Permalink
Change to latest in getting started config (ethereum-optimism#11524)
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby authored and samlaf committed Aug 20, 2024
1 parent eaad12b commit 66d00d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/contracts-bedrock/scripts/getting-started/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ reqenv "L2_CHAIN_ID"
reqenv "L1_BLOCK_TIME"
reqenv "L2_BLOCK_TIME"

# Get the finalized block timestamp and hash
block=$(cast block finalized --rpc-url "$L1_RPC_URL")
# Get the latest block timestamp and hash
block=$(cast block latest --rpc-url "$L1_RPC_URL")
timestamp=$(echo "$block" | awk '/timestamp/ { print $2 }')
blockhash=$(echo "$block" | awk '/hash/ { print $2 }')

Expand Down

0 comments on commit 66d00d0

Please sign in to comment.