Skip to content

Commit

Permalink
remove duplicate event emission (#6328)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Bezobchuk <[email protected]>
Co-authored-by: Federico Kunze <[email protected]>
  • Loading branch information
3 people authored Jun 4, 2020
1 parent 81d647e commit 50d748b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions x/ibc/02-client/keeper/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,6 @@ func (k Keeper) CreateClient(
k.SetClientType(ctx, clientID, clientState.ClientType())
k.Logger(ctx).Info(fmt.Sprintf("client %s created at height %d", clientID, clientState.GetLatestHeight()))

ctx.EventManager().EmitEvents(sdk.Events{
sdk.NewEvent(
types.EventTypeCreateClient,
sdk.NewAttribute(types.AttributeKeyClientID, clientID),
),
sdk.NewEvent(
sdk.EventTypeMessage,
sdk.NewAttribute(sdk.AttributeKeyModule, types.AttributeValueCategory),
),
})

return clientState, nil
}

Expand Down

0 comments on commit 50d748b

Please sign in to comment.