Skip to content

Commit

Permalink
Update x/observer/keeper/msg_server_add_block_header.go
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Bertrand <[email protected]>
  • Loading branch information
brewmaster012 and lumtis authored Sep 13, 2023
1 parent 6384541 commit de85739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/observer/keeper/msg_server_add_block_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (k msgServer) AddBlockHeader(goCtx context.Context, msg *types.MsgAddBlockH
return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, fmt.Sprintf("block header with hash %s already exists", msg.TxHash))
}

phash, err := msg.ParentHash() // error is checked in BasicValidation in msg; check again for extra caution
pHash, err := msg.ParentHash() // error is checked in BasicValidation in msg; check again for extra caution
if err != nil {
return nil, sdkerrors.Wrap(sdkerrors.ErrInvalidRequest, fmt.Sprintf("failed to get parent hash: %s", err.Error()))
}
Expand Down

0 comments on commit de85739

Please sign in to comment.