From 30842581416bc11d34e5cf2aa8804a2d75b3168f Mon Sep 17 00:00:00 2001 From: Harish Marri Date: Sat, 23 Sep 2023 23:41:14 +0530 Subject: [PATCH] lint --- exported/onft.go | 3 ++- keeper/msg_server.go | 1 + module.go | 2 ++ types/params.go | 6 ++---- types/params_legacy.go | 4 +--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/exported/onft.go b/exported/onft.go index 51743a4..bc922fe 100644 --- a/exported/onft.go +++ b/exported/onft.go @@ -1,9 +1,10 @@ package exported import ( - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" "time" + paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" + sdk "github.com/cosmos/cosmos-sdk/types" ) diff --git a/keeper/msg_server.go b/keeper/msg_server.go index 1526d7d..1de9714 100644 --- a/keeper/msg_server.go +++ b/keeper/msg_server.go @@ -2,6 +2,7 @@ package keeper import ( "context" + govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" errorsmod "cosmossdk.io/errors" diff --git a/module.go b/module.go index 38e3b70..8c8f63a 100644 --- a/module.go +++ b/module.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "fmt" + "github.com/OmniFlix/onft/exported" "github.com/OmniFlix/onft/simulation" @@ -134,6 +135,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw gs := ExportGenesis(ctx, am.keeper) return cdc.MustMarshalJSON(gs) } + func (AppModule) ConsensusVersion() uint64 { return ConsensusVersion } diff --git a/types/params.go b/types/params.go index 45f8da2..e6625f4 100644 --- a/types/params.go +++ b/types/params.go @@ -7,10 +7,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" ) -var ( - //DefaultDenomCreationFee Default period for closing bids for an auction - DefaultDenomCreationFee = sdk.NewInt64Coin("uflix", 100_000_000) // 100FLIX -) +// DefaultDenomCreationFee Default period for closing bids for an auction +var DefaultDenomCreationFee = sdk.NewInt64Coin("uflix", 100_000_000) // 100FLIX func NewONFTParams(denomCreationFee sdk.Coin) Params { return Params{ diff --git a/types/params_legacy.go b/types/params_legacy.go index 118dba2..98c7735 100644 --- a/types/params_legacy.go +++ b/types/params_legacy.go @@ -4,9 +4,7 @@ import ( paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" ) -var ( - ParamStoreKeyDenomCreationFee = []byte("DenomCreationFee") -) +var ParamStoreKeyDenomCreationFee = []byte("DenomCreationFee") var _ paramtypes.ParamSet = (*Params)(nil)