From 312046c381f58cfb7563614e0f2b257f4862e493 Mon Sep 17 00:00:00 2001 From: changtong1996 <36472950+changtong1996@users.noreply.github.com> Date: Sat, 9 May 2020 10:19:19 +0800 Subject: [PATCH] fix some little errors --- x/djzh/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/djzh/handler.go b/x/djzh/handler.go index d1c2113..2a805a0 100644 --- a/x/djzh/handler.go +++ b/x/djzh/handler.go @@ -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 {