Skip to content

Commit

Permalink
fix(genesis-templates): fixed genesis template generator and drs 1,2 …
Browse files Browse the repository at this point in the history
…templates (#402)
  • Loading branch information
omritoptix authored Dec 12, 2024
1 parent d0bf365 commit 0be4b39
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
4 changes: 3 additions & 1 deletion genesis-templates/DRS/1/genesis-mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion genesis-templates/DRS/1/genesis-testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions genesis-templates/DRS/2/genesis-mainnet.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions genesis-templates/DRS/2/genesis-testnet.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-genesis-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0be4b39

Please sign in to comment.