From e75f022b8723c7bbe8d154b3e8441f1b692cb98c Mon Sep 17 00:00:00 2001 From: Mark Tyneway Date: Fri, 12 Nov 2021 14:56:12 -0800 Subject: [PATCH] seth: update optimism genesis blockhashes Optimism performed a regenesis which updated the genesis blockhashes for both mainnet and kovan. For `seth chain` and any other `seth` commands that rely on `seth chain` to work, the hardcoded genesis blockhashes need to be updated. The values were fetched using the following commands: ``` $ seth --rpc-url https://mainnet.optimism.io block 0 hash 0x7ca38a1916c42007829c55e69d3e9a73265554b586a499015373241b8a3fa48b $ seth --rpc-url https://kovan.optimism.io block 0 hash 0x02adc9b449ff5f2467b8c674ece7ff9b21319d76c4ad62a67a70d552655927e5 ``` Tested locally with the commands: ``` $ ./target/debug/seth chain --rpc-url https://mainnet.optimism.io optimism-mainnet $ ./target/debug/seth chain --rpc-url https://kovan.optimism.io optimism-kovan ``` --- seth/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seth/src/lib.rs b/seth/src/lib.rs index 597572dc2011f..5ecf40a306a3d 100644 --- a/seth/src/lib.rs +++ b/seth/src/lib.rs @@ -247,10 +247,10 @@ where } "0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9" => "kovan", "0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d" => "ropsten", - "0x39e1b9259598b65c8c71d1ea153de17e89222e64e8b271213dfb92c231f7fb88" => { + "0x7ca38a1916c42007829c55e69d3e9a73265554b586a499015373241b8a3fa48b" => { "optimism-mainnet" } - "0x2510549c5c30f15472b55dbae139122e2e593f824217eefc7a53f78698ac5c1e" => { + "0x02adc9b449ff5f2467b8c674ece7ff9b21319d76c4ad62a67a70d552655927e5" => { "optimism-kovan" } "0x7ee576b35482195fc49205cec9af72ce14f003b9ae69f6ba0faef4514be8b442" => {