Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nivasan1 committed Jul 24, 2024
1 parent ea95311 commit 33ad36a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion protocol/app/ante/market_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ func (d ValidateMarketUpdateDecorator) doMarketsUpdateEnabledValues(ctx sdk.Cont

// if market exists, it should not change the enabled value
if mmMarket.Ticker.Enabled != market.Ticker.Enabled {
return fmt.Errorf("market should not change enabled value from %t to %t", mmMarket.Ticker.Enabled, market.Ticker.Enabled)
return fmt.Errorf(
"market should not change enabled value from %t to %t",
mmMarket.Ticker.Enabled, market.Ticker.Enabled,
)
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions protocol/app/ante/market_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func TestValidateMarketUpdateDecorator_AnteHandle(t *testing.T) {
simulate bool
marketPerps []marketPerpPair
marketMapMarkets []mmtypes.Market
marketParams []prices_types.MarketParam
marketParams []prices_types.MarketParam
}
tests := []struct {
name string
Expand Down Expand Up @@ -470,7 +470,7 @@ func TestValidateMarketUpdateDecorator_AnteHandle(t *testing.T) {
},
},
},
simulate: true,
simulate: true,
},
wantErr: true,
},
Expand All @@ -487,7 +487,7 @@ func TestValidateMarketUpdateDecorator_AnteHandle(t *testing.T) {
},
simulate: false,
marketMapMarkets: []mmtypes.Market{testMarketWithEnabled},
marketParams: []prices_types.MarketParam{testMarketParams},
marketParams: []prices_types.MarketParam{testMarketParams},
},
wantErr: true,
},
Expand All @@ -504,7 +504,7 @@ func TestValidateMarketUpdateDecorator_AnteHandle(t *testing.T) {
},
simulate: true,
marketMapMarkets: []mmtypes.Market{testMarketWithEnabled},
marketParams: []prices_types.MarketParam{testMarketParams},
marketParams: []prices_types.MarketParam{testMarketParams},
},
wantErr: true,
},
Expand Down

0 comments on commit 33ad36a

Please sign in to comment.