Skip to content

Commit

Permalink
the chain-id needs to be set before anything else (cerc-io#25)
Browse files Browse the repository at this point in the history
otherwise this error presents itself silently:

```
updated config is invalid: client config invalid: chain-id is empty
```

Co-authored-by: zramsay <[email protected]>
Reviewed-on: https://git.vdb.to/cerc-io/laconic2d/pulls/25
Co-authored-by: zramsay <[email protected]>
Co-committed-by: zramsay <[email protected]>
  • Loading branch information
2 people authored and nabarun committed Apr 1, 2024
1 parent 213c390 commit 6bc3d2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
make install
fi

laconicd config set client keyring-backend $KEYRING
laconicd config set client chain-id $CHAINID
laconicd config set client keyring-backend $KEYRING

# if $KEY exists it should be deleted
laconicd keys add $KEY --keyring-backend $KEYRING
Expand Down

0 comments on commit 6bc3d2f

Please sign in to comment.