Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed May 7, 2024
1 parent d9ab125 commit da480fd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions x/auction/keeper/rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (k Keeper) getAllRewardsBids() ([]auction.BidKV, error) {
func (k Keeper) storeAllRewardsBids(elems []auction.BidKV) error {
for _, e := range elems {
key := k.keyRewardsBid(e.Id)
if err := store.SetValue(k.store, key, &e.Bid, "auction.store_all_bids"); err != nil {
if err := store.SetValue(k.store, key, &e.Bid, "auction.store_all_bids"); err != nil { //nolint: gosec
return err
}
}
Expand Down Expand Up @@ -159,7 +159,7 @@ func (k Keeper) storeNewRewardsAuction(id uint32, endsAt time.Time, coins sdk.Co
func (k Keeper) storeAllRewardsAuctions(elems []auction.RewardsKV) error {
for _, e := range elems {
key := k.keyRewardsCoins(e.Id)
if err := store.SetValue(k.store, key, &e.Rewards, "auction.store_all_rewards"); err != nil {
if err := store.SetValue(k.store, key, &e.Rewards, "auction.store_all_rewards"); err != nil { //nolint: gosec
return err
}
}
Expand Down
12 changes: 6 additions & 6 deletions x/auction/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,20 @@ import (
"fmt"

abci "github.com/cometbft/cometbft/abci/types"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec"
cdctypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/address"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/gorilla/mux"
"github.com/grpc-ecosystem/grpc-gateway/runtime"
"github.com/spf13/cobra"

"github.com/umee-network/umee/v6/util"
"github.com/umee-network/umee/v6/x/auction"
// "github.com/umee-network/umee/v6/x/auction/client/cli"
"github.com/umee-network/umee/v6/x/auction/keeper"
// "github.com/umee-network/umee/v6/x/auction/client/cli"
)

var (
Expand Down Expand Up @@ -133,7 +132,8 @@ func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {}
func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate {
var genState auction.GenesisState
cdc.MustUnmarshalJSON(data, &genState)
am.kb.Keeper(&ctx).InitGenesis(&genState)
err := am.kb.Keeper(&ctx).InitGenesis(&genState)
util.Panic(err)

return []abci.ValidatorUpdate{}
}
Expand Down

0 comments on commit da480fd

Please sign in to comment.