From 3fbba926dda0b1e9df8434aeda81f9f9b3b2f712 Mon Sep 17 00:00:00 2001 From: tnasu Date: Thu, 21 Jul 2022 17:26:34 +0900 Subject: [PATCH] Fix the bug that should be used operator address when to is nil on CreateFTClass --- x/collection/keeper/msg_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/collection/keeper/msg_server.go b/x/collection/keeper/msg_server.go index ad5d9ca676..3cfb4a5e35 100644 --- a/x/collection/keeper/msg_server.go +++ b/x/collection/keeper/msg_server.go @@ -433,7 +433,7 @@ func (s msgServer) CreateFTClass(c context.Context, req *collection.MsgCreateFTC toAddr, err := sdk.AccAddressFromBech32(req.To) if err != nil { - return nil, err + toAddr = operatorAddr } ctx.EventManager().EmitEvent(collection.NewEventIssueFT(event, operatorAddr, toAddr, req.Supply))