Skip to content

Commit

Permalink
fix: add gas free for MsgUpdateParams (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi authored May 16, 2023
1 parent 988f8a3 commit 3bbfbc6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions x/gashub/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,24 @@ func NewGenesisState(params Params, msgGasParamsSet []MsgGasParams) *GenesisStat
// DefaultGenesisState - Return a default genesis state
func DefaultGenesisState() *GenesisState {
defaultMsgGasParamsSet := []MsgGasParams{
*NewMsgGasParamsWithFixedGas("/cosmos.auth.v1beta1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.bank.v1beta1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.consensus.v1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.crisis.v1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.crosschain.v1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.distribution.v1beta1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.gashub.v1beta1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.gov.v1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.mint.v1beta1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.oracle.v1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.slashing.v1beta1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.staking.v1beta1.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/greenfield.bridge.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/greenfield.sp.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/greenfield.storage.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/greenfield.payment.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/greenfield.challenge.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/greenfield.permission.MsgUpdateParams", 0),
*NewMsgGasParamsWithFixedGas("/cosmos.authz.v1beta1.MsgExec", 1.2e3),
*NewMsgGasParamsWithFixedGas("/cosmos.authz.v1beta1.MsgRevoke", 1.2e3),
*NewMsgGasParamsWithFixedGas("/cosmos.bank.v1beta1.MsgSend", 1.2e3),
Expand Down

0 comments on commit 3bbfbc6

Please sign in to comment.