Skip to content

Commit

Permalink
Fix the bug that should be used operator address when to is nil on Cr…
Browse files Browse the repository at this point in the history
…eateFTClass
  • Loading branch information
tnasu committed Jul 21, 2022
1 parent 40fefdc commit 3fbba92
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 3fbba92

Please sign in to comment.