Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Mar 26, 2024
1 parent 3558626 commit f6e8148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/observer/keeper/msg_server_add_blame_vote.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import (
func (k msgServer) AddBlameVote(goCtx context.Context, vote *types.MsgAddBlameVote) (*types.MsgAddBlameVoteResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)
observationType := types.ObservationType_TSSKeySign

Check failure on line 16 in x/observer/keeper/msg_server_add_blame_vote.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
// GetChainFromChainID makes sure we are getting only supported chains , if a chain support has been turned on using gov proposal, this function returns nil
observationChain := k.GetSupportedChainFromChainID(ctx, vote.ChainId)
if observationChain == nil {
return nil, cosmoserrors.Wrap(crosschainTypes.ErrUnsupportedChain, fmt.Sprintf("ChainID %d, Blame vote", vote.ChainId))
}
// IsNonTombstonedObserver does various checks against the list of observer mappers

if ok := k.IsNonTombstonedObserver(ctx, vote.Creator); !ok {
return nil, types.ErrNotObserver
}
Expand Down

0 comments on commit f6e8148

Please sign in to comment.