Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Jul 22, 2024
1 parent e4a1e7b commit e78e0a7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ let
in
buildGoApplication rec {
pname = "chain-maind";
version = "v5.0";
version = "v5.0.0";
go = buildPackages.go_1_22;
src = lib.cleanSourceWith {
name = "src";
Expand Down
1 change: 0 additions & 1 deletion x/nft/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ func GetCmdQuerySupply() *cobra.Command {
}
}

//nolint: govet
if err := types.ValidateDenomIDWithIBC(args[0]); err != nil {
return err
}
Expand Down
4 changes: 1 addition & 3 deletions x/nft/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ import (
"github.com/crypto-org-chain/chain-main/v4/x/nft/exported"
)

var (
ModuleCdc = codec.NewLegacyAmino()
)
var ModuleCdc = codec.NewLegacyAmino()

func init() {
RegisterLegacyAminoCodec(ModuleCdc)
Expand Down
2 changes: 0 additions & 2 deletions x/nft/types/keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
func TestSplitKeyDenomWithoutIBC(t *testing.T) {
keyDenom := []byte("testdenomid/testtokenid")

//nolint: govet
denomID, tokenID, err := types.SplitKeyDenom(keyDenom)

require.NoError(t, err)
Expand All @@ -21,7 +20,6 @@ func TestSplitKeyDenomWithoutIBC(t *testing.T) {
func TestSplitKeyDenomWithIBC(t *testing.T) {
keyDenom := []byte("ibc/testdenomid/testtokenid")

//nolint: govet
denomID, tokenID, err := types.SplitKeyDenom(keyDenom)

require.NoError(t, err)
Expand Down

0 comments on commit e78e0a7

Please sign in to comment.