fix ICS-20 event bug (#6269)

This commit is contained in:
Segue 2020-05-22 20:11:46 +08:00 committed by GitHub
parent 850419fffd
commit ecbb5acb3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,8 @@ import (
// NewHandler returns sdk.Handler for IBC token transfer module messages // NewHandler returns sdk.Handler for IBC token transfer module messages
func NewHandler(k Keeper) sdk.Handler { func NewHandler(k Keeper) sdk.Handler {
return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) { return func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {
ctx = ctx.WithEventManager(sdk.NewEventManager())
switch msg := msg.(type) { switch msg := msg.(type) {
case MsgTransfer: case MsgTransfer:
return handleMsgTransfer(ctx, k, msg) return handleMsgTransfer(ctx, k, msg)