diff --git a/Dockerfile b/Dockerfile index 5916d4656..7844c9ece 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ FROM ubuntu:22.04 # Install ca-certificates, jq, curl, bash, and other necessary packages RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ - jq curl netcat bash \ + jq curl netcat bash bc \ && rm -rf /var/lib/apt/lists/* # Copy over binary from the builder diff --git a/scripts/init.sh b/scripts/init.sh index e41ea227c..8a1333dce 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -10,7 +10,7 @@ LOGLEVEL=${LOGLEVEL:-"info"} input_genesis_file=${GENESIS_FILE} -if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then +if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data" ]; then # validate dependencies are installed command -v jq > /dev/null 2>&1 || { echo >&2 "jq not installed. More info: https://stedolan.github.io/jq/download/" @@ -30,7 +30,7 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then # if $KEY exists it should be deleted laconicd keys add $KEY --keyring-backend $KEYRING - # Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer) + # Set moniker and chain-id laconicd init $MONIKER --chain-id $CHAINID --default-denom $DENOM if [[ -f ${input_genesis_file} ]]; then diff --git a/x/auction/client/cli/tx.go b/x/auction/client/cli/tx.go index 7ff1dda05..b5f71483d 100644 --- a/x/auction/client/cli/tx.go +++ b/x/auction/client/cli/tx.go @@ -53,9 +53,9 @@ func GetCmdCommitBid() *cobra.Command { if chainId == "" { // Take from config if not provided chainId = clientCtx.ChainID - if chainId == "" { - return fmt.Errorf("--chain-id required") - } + } + if chainId == "" { + return fmt.Errorf("--chain-id required") } bidAmount, err := sdk.ParseCoinNormalized(args[1]) diff --git a/x/registry/keeper/genesis.go b/x/registry/keeper/genesis.go index 36ec275d6..99649a438 100644 --- a/x/registry/keeper/genesis.go +++ b/x/registry/keeper/genesis.go @@ -30,6 +30,11 @@ func (k *Keeper) InitGenesis(ctx sdk.Context, data *registry.GenesisState) error return err } } + + readableRecord := record.ToReadableRecord() + if err := k.processAttributes(ctx, readableRecord.Attributes, record.Id); err != nil { + return err + } } for _, authority := range data.Authorities {