Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rename ugov EventMinTxFees to EventMinGasPrice #2140

Merged
merged 3 commits into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

- [2134](https://github.com/umee-network/umee/pull/2134) Bump CometBFT to 34.29.

### API Breaking

- [2140](https://github.com/umee-network/umee/pull/2140)

## [v5.1.0](https://github.com/umee-network/umee/releases/tag/v5.1.0) - 2023-07-07

### Bug Fixes
Expand Down
6 changes: 3 additions & 3 deletions proto/umee/ugov/v1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import "gogoproto/gogo.proto";
option go_package = "github.com/umee-network/umee/v5/x/ugov";
option (gogoproto.goproto_getters_all) = false;

// EventMinTxFees is emitted when MsgGovUpdateMinFees is correctly executed.
message EventMinTxFees {
repeated cosmos.base.v1beta1.DecCoin min_tx_fees = 1 [(gogoproto.nullable) = false];
// EventMinGasPrice is emitted when MsgGovUpdateMinGasPrice is correctly executed.
message EventMinGasPrice {
repeated cosmos.base.v1beta1.DecCoin min_gas_prices = 1 [(gogoproto.nullable) = false];
}

// EventEmergencyGroup is emitted when MsgGovSetEmergencyGroup is correctly executed.
Expand Down
106 changes: 53 additions & 53 deletions x/ugov/events.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions x/ugov/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func (m msgServer) GovUpdateMinGasPrice(ctx context.Context, msg *ugov.MsgGovUpd
if err := k.SetMinGasPrice(msg.MinGasPrice); err != nil {
return nil, err
}
sdkutil.Emit(&sdkCtx, &ugov.EventMinTxFees{
MinTxFees: sdk.NewDecCoins(msg.MinGasPrice),
sdkutil.Emit(&sdkCtx, &ugov.EventMinGasPrice{
MinGasPrices: sdk.NewDecCoins(msg.MinGasPrice),
})

return &ugov.MsgGovUpdateMinGasPriceResponse{}, nil
Expand Down