Skip to content

Commit

Permalink
block da change
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Feb 3, 2025
1 parent 2c74005 commit 11b9620
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/rollappparams/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,14 @@ func blockDRSVersion(any) error {
return fmt.Errorf("drs version is not allowed to be set: %w", gerrc.ErrInvalidArgument)
}

func blockDa(any) error {
return fmt.Errorf("da type is not allowed to be modified: %w", gerrc.ErrInvalidArgument)
}

// Implements params.ParamSet.
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
return paramtypes.ParamSetPairs{
paramtypes.NewParamSetPair(KeyDa, &p.Da, ValidateDa),
paramtypes.NewParamSetPair(KeyDa, &p.Da, blockDa),
paramtypes.NewParamSetPair(KeyVersion, &p.DrsVersion, blockDRSVersion),
paramtypes.NewParamSetPair(KeyMinGasPrices, &p.MinGasPrices, ValidateMinGasPrices),
}
Expand Down

0 comments on commit 11b9620

Please sign in to comment.