fix some little errors

This commit is contained in:
changtong1996 2020-05-09 10:19:19 +08:00 committed by GitHub
parent e5b1e4d1ce
commit 312046c381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 {