Skip to content

Commit

Permalink
Pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradStaniec committed Sep 2, 2024
1 parent 6603b81 commit 717eecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x/btcstaking/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (ms msgServer) CreateBTCDelegation(goCtx context.Context, req *types.MsgCre

btccParams := ms.btccKeeper.GetParams(ctx)

paramsValidationResult, err := types.ValidateParams(parsedMsg, &vp.Params, &btccParams, ms.btcNet)
paramsValidationResult, err := types.ValidateParsedMessageAgainstTheParams(parsedMsg, &vp.Params, &btccParams, ms.btcNet)

if err != nil {
return nil, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type ParamsValidationResult struct {
UnbondingOutputIdx uint32
}

// ValidateParams validates parsed message against parameters
func ValidateParams(
// ValidateParsedMessageAgainstTheParams validates parsed message against parameters
func ValidateParsedMessageAgainstTheParams(
pm *ParsedCreateDelegationMessage,
parameters *Params,
btcheckpointParamseters *btcckpttypes.Params,
Expand Down

0 comments on commit 717eecd

Please sign in to comment.