From 0be4b39dac30cd500c6c2c823b2da621c73303d9 Mon Sep 17 00:00:00 2001 From: Omri Date: Thu, 12 Dec 2024 18:22:30 +0100 Subject: [PATCH] fix(genesis-templates): fixed genesis template generator and drs 1,2 templates (#402) --- genesis-templates/DRS/1/genesis-mainnet.json | 4 +++- genesis-templates/DRS/1/genesis-testnet.json | 4 +++- genesis-templates/DRS/2/genesis-mainnet.json | 6 ++++-- genesis-templates/DRS/2/genesis-testnet.json | 6 ++++-- scripts/generate-genesis-template.sh | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/genesis-templates/DRS/1/genesis-mainnet.json b/genesis-templates/DRS/1/genesis-mainnet.json index ac411f6..838998c 100644 --- a/genesis-templates/DRS/1/genesis-mainnet.json +++ b/genesis-templates/DRS/1/genesis-mainnet.json @@ -129,7 +129,9 @@ "evm_denom": "aevmos", "enable_create": true, "enable_call": true, - "extra_eips": "3855", + "extra_eips": [ + "3855" + ], "chain_config": { "homestead_block": "0", "dao_fork_block": "0", diff --git a/genesis-templates/DRS/1/genesis-testnet.json b/genesis-templates/DRS/1/genesis-testnet.json index 180b48c..e402cd4 100644 --- a/genesis-templates/DRS/1/genesis-testnet.json +++ b/genesis-templates/DRS/1/genesis-testnet.json @@ -129,7 +129,9 @@ "evm_denom": "aevmos", "enable_create": true, "enable_call": true, - "extra_eips": "3855", + "extra_eips": [ + "3855" + ], "chain_config": { "homestead_block": "0", "dao_fork_block": "0", diff --git a/genesis-templates/DRS/2/genesis-mainnet.json b/genesis-templates/DRS/2/genesis-mainnet.json index d0fd72e..7b30e25 100644 --- a/genesis-templates/DRS/2/genesis-mainnet.json +++ b/genesis-templates/DRS/2/genesis-mainnet.json @@ -1,5 +1,5 @@ { - "genesis_time": "2024-12-12T14:04:22.649885Z", + "genesis_time": "2024-12-12T17:19:38.388208Z", "chain_id": "rollappevm_1234-1", "initial_height": "1", "consensus_params": { @@ -130,7 +130,9 @@ "evm_denom": "aevmos", "enable_create": true, "enable_call": true, - "extra_eips": "3855", + "extra_eips": [ + "3855" + ], "chain_config": { "homestead_block": "0", "dao_fork_block": "0", diff --git a/genesis-templates/DRS/2/genesis-testnet.json b/genesis-templates/DRS/2/genesis-testnet.json index bb88998..d0f2ac8 100644 --- a/genesis-templates/DRS/2/genesis-testnet.json +++ b/genesis-templates/DRS/2/genesis-testnet.json @@ -1,5 +1,5 @@ { - "genesis_time": "2024-12-12T14:04:05.281694Z", + "genesis_time": "2024-12-12T17:19:55.783133Z", "chain_id": "rollappevm_1234-1", "initial_height": "1", "consensus_params": { @@ -130,7 +130,9 @@ "evm_denom": "aevmos", "enable_create": true, "enable_call": true, - "extra_eips": "3855", + "extra_eips": [ + "3855" + ], "chain_config": { "homestead_block": "0", "dao_fork_block": "0", diff --git a/scripts/generate-genesis-template.sh b/scripts/generate-genesis-template.sh index 0ee0705..2777576 100755 --- a/scripts/generate-genesis-template.sh +++ b/scripts/generate-genesis-template.sh @@ -46,7 +46,7 @@ update_params() { # Update jq command to use temp file - if ! jq '.app_state.evm.params.extra_eips = "3855"' "$TEMP_GENESIS" > "${TEMP_DIR}/temp.json"; then + if ! jq '.app_state.evm.params.extra_eips = ["3855"]' "$TEMP_GENESIS" > "${TEMP_DIR}/temp.json"; then echo "Error updating JSON file" success=false else