fix some little errors
This commit is contained in:
parent
e5b1e4d1ce
commit
312046c381
|
@ -100,6 +100,7 @@ func handleMsgCreateComment(ctx sdk.Context, k Keeper, msg MsgCreateComment) (*s
|
|||
if err == nil {
|
||||
return nil, sdkerrors.Wrap(err, "Comment with that id already exists")
|
||||
}
|
||||
//need to modify
|
||||
moduleAcct := sdk.AccAddress(crypto.AddressHash([]byte(types.ModuleName)))
|
||||
sdkError := k.CoinKeeper.SendCoins(ctx, comment.Creator, moduleAcct, comment.Reward)
|
||||
if sdkError != nil {
|
||||
|
|
Loading…
Reference in New Issue