Skip to content

Commit

Permalink
rename record to parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke committed Sep 3, 2024
1 parent 0777f87 commit 21b34e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/ccv/provider/keeper/power_shaping.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ func (k Keeper) GetConsumerPowerShapingParameters(ctx sdk.Context, consumerId st
return types.PowerShapingParameters{}, errorsmod.Wrapf(ccvtypes.ErrStoreKeyNotFound,
"GetConsumerPowerShapingParameters, consumerId(%s)", consumerId)
}
var record types.PowerShapingParameters
if err := record.Unmarshal(bz); err != nil {
var parameters types.PowerShapingParameters
if err := parameters.Unmarshal(bz); err != nil {
return types.PowerShapingParameters{}, errorsmod.Wrapf(ccvtypes.ErrStoreUnmarshal,
"GetConsumerPowerShapingParameters, consumerId(%s): %s", consumerId, err.Error())
}
return record, nil
return parameters, nil
}

// SetConsumerPowerShapingParameters sets the power-shaping parameters associated with this consumer id.
Expand Down

0 comments on commit 21b34e5

Please sign in to comment.