Skip to content

Commit

Permalink
Merge pull request Finschia#16 from tnasu/fix/issue578_squash
Browse files Browse the repository at this point in the history
Fix the bug that should be used `operator` address when `to` address is nil on CreateFTClass
  • Loading branch information
ulbqb authored Jul 21, 2022
2 parents 40fefdc + 3fbba92 commit 2fe48d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/collection/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2fe48d0

Please sign in to comment.