Skip to content

Commit

Permalink
chore: add global gas adjustment to MsgCreateFunder
Browse files Browse the repository at this point in the history
  • Loading branch information
mbreithecker committed Oct 25, 2023
1 parent 98722b9 commit f39bdfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/upgrades/v1_4/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,14 @@ func CreateUpgradeHandler(
return vm, err
}

// Set min gas for funder creation in global module
globalParams := globalKeeper.GetParams(ctx)
globalParams.GasAdjustments = append(globalParams.GasAdjustments, globalTypes.GasAdjustment{
Type: "/kyve.funders.v1beta1.MsgCreateFunder",
Amount: 50_000_000,
})
globalKeeper.SetParams(ctx, globalParams)

return vm, nil
}
}
Expand Down
1 change: 0 additions & 1 deletion x/funders/keeper/msg_server_create_funder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (

// CreateFunder creates a new funder object and stores it in the store.
// If the funder already exists, an error is returned.
// TODO(rapha): this can be spammed right now. Someone can just created a bunch of funders to get displayed on the funders page. We should probably add a fee to this.
func (k msgServer) CreateFunder(goCtx context.Context, msg *types.MsgCreateFunder) (*types.MsgCreateFunderResponse, error) {
ctx := sdk.UnwrapSDKContext(goCtx)

Expand Down

0 comments on commit f39bdfd

Please sign in to comment.