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

refactor: fix lint issues #2059

Merged
merged 15 commits into from
Apr 22, 2024
2 changes: 1 addition & 1 deletion app/setup_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
const releaseVersion = "v15"

func SetupHandlers(app *App) {
app.UpgradeKeeper.SetUpgradeHandler(releaseVersion, func(ctx sdk.Context, plan types.Plan, vm module.VersionMap) (module.VersionMap, error) {
app.UpgradeKeeper.SetUpgradeHandler(releaseVersion, func(ctx sdk.Context, _ types.Plan, vm module.VersionMap) (module.VersionMap, error) {
app.Logger().Info("Running upgrade handler for " + releaseVersion)
// Updated version map to the latest consensus versions from each module
for m, mb := range app.mm.Modules {
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
* [2001](https://github.com/zeta-chain/node/pull/2001) - replace broadcast mode block with sync and remove fungible params
* [1989](https://github.com/zeta-chain/node/pull/1989) - simplify `IsSendOutTxProcessed` method and add unit tests
* [2013](https://github.com/zeta-chain/node/pull/2013) - rename `GasPriceVoter` message to `VoteGasPrice`
* [2059](https://github.com/zeta-chain/node/pull/2059) - Remove unused params from all functions in zetanode

### Features

Expand Down
2 changes: 1 addition & 1 deletion cmd/zetaclientd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func DebugCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "get-ballot-from-intx [txHash] [chainID]",
Short: "provide txHash and chainID to get the ballot status for the txHash",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
cobra.ExactArgs(2)
cfg, err := config.Load(debugArgs.zetaCoreHome)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion cmd/zetacored/addr_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ it always outputs three lines; the first line is the zeta1xxx address, the secon
and the third line is the ethereum address.
`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
addr, err := sdk.AccAddressFromBech32(args[0])
if err == nil {
valAddr := sdk.ValAddress(addr.Bytes())
Expand Down
2 changes: 1 addition & 1 deletion cmd/zetacored/collect_observer_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CollectObserverInfoCmd() *cobra.Command {
Use: "collect-observer-info [folder]",
Short: "collect observer info from a folder , default path is ~/.zetacored/os_info/ \n",
Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
defaultHome := app.DefaultNodeHome
defaultFile := filepath.Join(defaultHome, "os_info")
if len(args) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion docs/openapi/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func openAPIHandler() http.HandlerFunc {
panic(err)
}

return func(w http.ResponseWriter, req *http.Request) {
return func(w http.ResponseWriter, _ *http.Request) {
err := tmpl.Execute(w, struct {
URL string
}{
Expand Down
2 changes: 1 addition & 1 deletion rpc/websockets.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (s *websocketsServer) Start() {

func (s *websocketsServer) ServeHTTP(w http.ResponseWriter, r *http.Request) {
upgrader := websocket.Upgrader{
CheckOrigin: func(r *http.Request) bool {
CheckOrigin: func(_ *http.Request) bool {
return true
},
}
Expand Down
2 changes: 1 addition & 1 deletion x/authority/client/cli/query_policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CmdShowPolicies() *cobra.Command {
Use: "show-policies",
Short: "show the policies",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/cli_cctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func CmdListSend() *cobra.Command {
cmd := &cobra.Command{
Use: "list-cctx",
Short: "list all CCTX",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

pageReq, err := client.ReadPageRequest(cmd.Flags())
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/cli_gas_price.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CmdListGasPrice() *cobra.Command {
cmd := &cobra.Command{
Use: "list-gas-price",
Short: "list all gasPrice",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

pageReq, err := client.ReadPageRequest(cmd.Flags())
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/cli_in_tx_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func CmdListInTxTrackers() *cobra.Command {
Use: "list-all-in-tx-trackers",
Short: "shows all inTxTrackers",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {
clientCtx := client.GetClientContextFromCmd(cmd)
queryClient := types.NewQueryClient(clientCtx)
params := &types.QueryAllInTxTrackersRequest{}
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/cli_last_block_height.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdListLastBlockHeight() *cobra.Command {
cmd := &cobra.Command{
Use: "list-last-block-height",
Short: "list all lastBlockHeight",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

pageReq, err := client.ReadPageRequest(cmd.Flags())
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/cli_out_tx_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CmdListOutTxTracker() *cobra.Command {
cmd := &cobra.Command{
Use: "list-out-tx-tracker",
Short: "list all OutTxTracker",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

pageReq, err := client.ReadPageRequest(cmd.Flags())
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/cli_zeta_height.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func CmdLastZetaHeight() *cobra.Command {
Use: "last-zeta-height",
Short: "Query last Zeta Height",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {

clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/query_in_tx_hash_to_cctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdListInTxHashToCctx() *cobra.Command {
cmd := &cobra.Command{
Use: "list-in-tx-hash-to-cctx",
Short: "list all inTxHashToCctx",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

pageReq, err := client.ReadPageRequest(cmd.Flags())
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/query_rate_limiter_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdShowUpdateRateLimiterFlags() *cobra.Command {
cmd := &cobra.Command{
Use: "update_rate_limit_flags",
Short: "shows the rate limiter flags",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/client/cli/query_zeta_accounting.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func CmdGetZetaAccounting() *cobra.Command {
Use: "get-zeta-accounting",
Short: "Query zeta accounting",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/keeper/grpc_query_cctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (k Keeper) CctxAll(c context.Context, req *types.QueryAllCctxRequest) (*typ
store := ctx.KVStore(k.storeKey)
sendStore := prefix.NewStore(store, types.KeyPrefix(types.SendKey))

pageRes, err := query.Paginate(sendStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(sendStore, req.Pagination, func(_ []byte, value []byte) error {
var send types.CrossChainTx
if err := k.cdc.Unmarshal(value, &send); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/keeper/grpc_query_gas_price.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (k Keeper) GasPriceAll(c context.Context, req *types.QueryAllGasPriceReques
store := ctx.KVStore(k.storeKey)
gasPriceStore := prefix.NewStore(store, types.KeyPrefix(types.GasPriceKey))

pageRes, err := query.Paginate(gasPriceStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(gasPriceStore, req.Pagination, func(_ []byte, value []byte) error {
var gasPrice types.GasPrice
if err := k.cdc.Unmarshal(value, &gasPrice); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/keeper/grpc_query_in_tx_hash_to_cctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (k Keeper) InTxHashToCctxAll(c context.Context, req *types.QueryAllInTxHash
store := ctx.KVStore(k.storeKey)
inTxHashToCctxStore := prefix.NewStore(store, types.KeyPrefix(types.InTxHashToCctxKeyPrefix))

pageRes, err := query.Paginate(inTxHashToCctxStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(inTxHashToCctxStore, req.Pagination, func(_ []byte, value []byte) error {
var inTxHashToCctx types.InTxHashToCctx
if err := k.cdc.Unmarshal(value, &inTxHashToCctx); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/crosschain/keeper/grpc_query_last_block_height.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (k Keeper) LastBlockHeightAll(c context.Context, req *types.QueryAllLastBlo
store := ctx.KVStore(k.storeKey)
lastBlockHeightStore := prefix.NewStore(store, types.KeyPrefix(types.LastBlockHeightKey))

pageRes, err := query.Paginate(lastBlockHeightStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(lastBlockHeightStore, req.Pagination, func(_ []byte, value []byte) error {
var lastBlockHeight types.LastBlockHeight
if err := k.cdc.Unmarshal(value, &lastBlockHeight); err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions x/crosschain/keeper/grpc_query_out_tx_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (k Keeper) OutTxTrackerAll(c context.Context, req *types.QueryAllOutTxTrack

store := ctx.KVStore(k.storeKey)
outTxTrackerStore := prefix.NewStore(store, types.KeyPrefix(types.OutTxTrackerKeyPrefix))
pageRes, err := query.Paginate(outTxTrackerStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(outTxTrackerStore, req.Pagination, func(_ []byte, value []byte) error {
var outTxTracker types.OutTxTracker
if err := k.cdc.Unmarshal(value, &outTxTracker); err != nil {
return err
Expand All @@ -49,7 +49,7 @@ func (k Keeper) OutTxTrackerAllByChain(c context.Context, req *types.QueryAllOut
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.OutTxTrackerKeyPrefix))
chainStore := prefix.NewStore(store, types.KeyPrefix(fmt.Sprintf("%d-", req.Chain)))

pageRes, err := query.Paginate(chainStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(chainStore, req.Pagination, func(_ []byte, value []byte) error {
var outTxTracker types.OutTxTracker
if err := k.cdc.Unmarshal(value, &outTxTracker); err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions x/crosschain/keeper/in_tx_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (k Keeper) GetAllInTxTrackerPaginated(ctx sdk.Context, pagination *query.Pa
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(types.InTxTrackerKeyPrefix))
iterator := sdk.KVStorePrefixIterator(store, []byte{})
defer iterator.Close()
pageRes, err = query.Paginate(store, pagination, func(key []byte, value []byte) error {
pageRes, err = query.Paginate(store, pagination, func(_ []byte, value []byte) error {
var inTxTracker types.InTxTracker
if err := k.cdc.Unmarshal(value, &inTxTracker); err != nil {
return err
Expand Down Expand Up @@ -82,7 +82,7 @@ func (k Keeper) GetAllInTxTrackerForChain(ctx sdk.Context, chainID int64) (list
func (k Keeper) GetAllInTxTrackerForChainPaginated(ctx sdk.Context, chainID int64, pagination *query.PageRequest) (inTxTrackers []types.InTxTracker, pageRes *query.PageResponse, err error) {
store := prefix.NewStore(ctx.KVStore(k.storeKey), types.KeyPrefix(fmt.Sprintf("%s", types.InTxTrackerKeyPrefix)))
chainStore := prefix.NewStore(store, types.KeyPrefix(fmt.Sprintf("%d-", chainID)))
pageRes, err = query.Paginate(chainStore, pagination, func(key []byte, value []byte) error {
pageRes, err = query.Paginate(chainStore, pagination, func(_ []byte, value []byte) error {
var inTxTracker types.InTxTracker
if err := k.cdc.Unmarshal(value, &inTxTracker); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/emissions/client/cli/query_get_emmisons_factors.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func CmdGetEmmisonsFactors() *cobra.Command {
Use: "get-emmisons-factors",
Short: "Query GetEmmisonsFactors",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {

clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion x/emissions/client/cli/query_list_balances.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func CmdListPoolAddresses() *cobra.Command {
Use: "list-pool-addresses",
Short: "Query list-pool-addresses",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {

clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion x/emissions/client/cli/query_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CmdQueryParams() *cobra.Command {
Use: "params",
Short: "shows the parameters of the module",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down
2 changes: 1 addition & 1 deletion x/fungible/client/cli/query_foreign_coins.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdListForeignCoins() *cobra.Command {
cmd := &cobra.Command{
Use: "list-foreign-coins",
Short: "list all ForeignCoins",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

pageReq, err := client.ReadPageRequest(cmd.Flags())
Expand Down
4 changes: 2 additions & 2 deletions x/fungible/client/cli/query_gas_stability_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func CmdGasStabilityPoolAddress() *cobra.Command {
Use: "gas-stability-pool-address",
Short: "query the address of a gas stability pool",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down Expand Up @@ -74,7 +74,7 @@ func CmdGasStabilityPoolBalances() *cobra.Command {
Use: "gas-stability-pool-balances",
Short: "query all gas stability pool balances",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down
2 changes: 1 addition & 1 deletion x/fungible/client/cli/query_system_contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdSystemContract() *cobra.Command {
cmd := &cobra.Command{
Use: "system-contract",
Short: "query system contract",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)
queryClient := types.NewQueryClient(clientCtx)

Expand Down
2 changes: 1 addition & 1 deletion x/fungible/client/cli/tx_deploy_system_contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdDeploySystemContracts() *cobra.Command {
Use: "deploy-system-contracts",
Short: "Broadcast message SystemContracts",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/fungible/keeper/grpc_query_foreign_coins.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (k Keeper) ForeignCoinsAll(c context.Context, req *types.QueryAllForeignCoi
store := ctx.KVStore(k.storeKey)
foreignCoinsStore := prefix.NewStore(store, types.KeyPrefix(types.ForeignCoinsKeyPrefix))

pageRes, err := query.Paginate(foreignCoinsStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(foreignCoinsStore, req.Pagination, func(_ []byte, value []byte) error {
var foreignCoins types.ForeignCoins
if err := k.cdc.Unmarshal(value, &foreignCoins); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/lightclient/client/cli/query_block_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func CmdListBlockHeader() *cobra.Command {
Use: "list-block-header",
Short: "List all the block headers",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/lightclient/client/cli/query_chain_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CmdListChainState() *cobra.Command {
Use: "list-chain-state",
Short: "List all the chain states",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/lightclient/client/cli/query_verification_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func CmdShowVerificationFlags() *cobra.Command {
Use: "show-verification-flags",
Short: "Show the verification flags",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {
clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/lightclient/keeper/grpc_query_block_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func (k Keeper) BlockHeaderAll(c context.Context, req *types.QueryAllBlockHeader
blockHeaderStore := prefix.NewStore(store, types.KeyPrefix(types.BlockHeaderKey))

var blockHeaders []proofs.BlockHeader
pageRes, err := query.Paginate(blockHeaderStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(blockHeaderStore, req.Pagination, func(_ []byte, value []byte) error {
var blockHeader proofs.BlockHeader
if err := k.cdc.Unmarshal(value, &blockHeader); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/lightclient/keeper/grpc_query_chain_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (k Keeper) ChainStateAll(c context.Context, req *types.QueryAllChainStateRe
chainStateStore := prefix.NewStore(store, types.KeyPrefix(types.ChainStateKey))

var chainStates []types.ChainState
pageRes, err := query.Paginate(chainStateStore, req.Pagination, func(key []byte, value []byte) error {
pageRes, err := query.Paginate(chainStateStore, req.Pagination, func(_ []byte, value []byte) error {
var chainState types.ChainState
if err := k.cdc.Unmarshal(value, &chainState); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion x/observer/client/cli/query_blame.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func CmdGetAllBlameRecords() *cobra.Command {
Use: "list-blame",
Short: "Query AllBlameRecords",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {

clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion x/observer/client/cli/query_chain_nonce.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdListChainNonces() *cobra.Command {
cmd := &cobra.Command{
Use: "list-chain-nonces",
Short: "list all chainNonces",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

pageReq, err := client.ReadPageRequest(cmd.Flags())
Expand Down
2 changes: 1 addition & 1 deletion x/observer/client/cli/query_chain_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func CmdGetChainParams() *cobra.Command {
Use: "list-chain-params",
Short: "Query GetChainParams",
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) (err error) {
RunE: func(cmd *cobra.Command, _ []string) (err error) {

clientCtx, err := client.GetClientTxContext(cmd)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion x/observer/client/cli/query_keygen.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func CmdShowKeygen() *cobra.Command {
Use: "show-keygen",
Short: "shows keygen",
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

queryClient := types.NewQueryClient(clientCtx)
Expand Down
2 changes: 1 addition & 1 deletion x/observer/client/cli/query_node_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func CmdListNodeAccount() *cobra.Command {
cmd := &cobra.Command{
Use: "list-node-account",
Short: "list all NodeAccount",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
clientCtx := client.GetClientContextFromCmd(cmd)

pageReq, err := client.ReadPageRequest(cmd.Flags())
Expand Down
Loading
Loading