From 17745e70d5440edb31538fcfc5f020e9f3a65de2 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 5 Sep 2024 10:37:36 +0530 Subject: [PATCH] Fix onboarding disabled error msg --- scripts/init.sh | 2 +- x/onboarding/keeper/keeper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index d612eb4f..e41ea227 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -62,7 +62,7 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then fi if [[ "$ONBOARDING_ENABLED" == "true" ]]; then - echo "Enabling validator onboarding." + echo "Enabling onboarding." update_genesis '.app_state["onboarding"]["params"]["onboarding_enabled"]=true' fi diff --git a/x/onboarding/keeper/keeper.go b/x/onboarding/keeper/keeper.go index d22b7af7..f53e0ca1 100644 --- a/x/onboarding/keeper/keeper.go +++ b/x/onboarding/keeper/keeper.go @@ -80,7 +80,7 @@ func (k Keeper) OnboardParticipant( } if !params.OnboardingEnabled { - return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Validator onboarding is disabled") + return nil, errorsmod.Wrap(sdkerrors.ErrInvalidRequest, "Onboarding is disabled") } message, err := json.Marshal(msg.EthPayload)