From 64d870f21f258f1116570abc18470a8e558f0629 Mon Sep 17 00:00:00 2001 From: Patrick Wieth Date: Mon, 3 Oct 2022 15:43:33 +0200 Subject: [PATCH] make council available but optional --- x/cardchain/keeper/msg_server_create_council.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/x/cardchain/keeper/msg_server_create_council.go b/x/cardchain/keeper/msg_server_create_council.go index 65682d4c..625e8e83 100644 --- a/x/cardchain/keeper/msg_server_create_council.go +++ b/x/cardchain/keeper/msg_server_create_council.go @@ -18,9 +18,10 @@ func (k msgServer) CreateCouncil(goCtx context.Context, msg *types.MsgCreateCoun } card := k.Cards.Get(ctx, msg.CardId) - if card.Status != types.Status_prototype { - return nil, sdkerrors.Wrapf(types.ErrInvalidCardStatus, "%s", card.Status.String()) - } else if card.Owner != msg.Creator { + //if card.Status != types.Status_prototype { + // return nil, sdkerrors.Wrapf(types.ErrInvalidCardStatus, "%s", card.Status.String()) + //} else + if card.Owner != msg.Creator { return nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "Incorrect Creator") }