Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code committed Oct 27, 2023
1 parent 320c87a commit 20ddd35
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ run-local: install
### Linting ###
###############################################################################

lint:
lint: format
@echo "--> Running linter"
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run -v --go=1.19 --out-format=tab
Expand Down
2 changes: 1 addition & 1 deletion app/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
sdk "github.com/cosmos/cosmos-sdk/types"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
v6 "github.com/functionx/fx-core/v6/app/upgrades/v6"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/libs/log"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

"github.com/functionx/fx-core/v6/app"
v6 "github.com/functionx/fx-core/v6/app/upgrades/v6"
"github.com/functionx/fx-core/v6/testutil/helpers"
fxtypes "github.com/functionx/fx-core/v6/types"
)
Expand Down
1 change: 1 addition & 0 deletions app/upgrades/v6/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package v6

import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"

"github.com/functionx/fx-core/v6/app/upgrades"
)

Expand Down
4 changes: 3 additions & 1 deletion x/crosschain/types/errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package types

import errorsmod "cosmossdk.io/errors"
import (
errorsmod "cosmossdk.io/errors"
)

var (
ErrInvalid = errorsmod.Register(ModuleName, 2, "invalid")
Expand Down
4 changes: 3 additions & 1 deletion x/erc20/types/errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package types

import errorsmod "cosmossdk.io/errors"
import (
errorsmod "cosmossdk.io/errors"
)

var (
ErrERC20Disabled = errorsmod.Register(ModuleName, 2, "erc20 module is disabled")
Expand Down
4 changes: 3 additions & 1 deletion x/erc20/types/genesis.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package types

import "fmt"
import (
"fmt"
)

// NewGenesisState creates a new genesis state.
func NewGenesisState(params Params, pairs []TokenPair) GenesisState {
Expand Down
4 changes: 3 additions & 1 deletion x/ibc/applications/transfer/types/errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package types

import errorsmod "cosmossdk.io/errors"
import (
errorsmod "cosmossdk.io/errors"
)

var (
ErrFeeDenomNotMatchTokenDenom = errorsmod.Register(ModuleName, 100, "invalid fee denom, must match token denom")
Expand Down
4 changes: 3 additions & 1 deletion x/migrate/types/errors.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package types

import errorsmod "cosmossdk.io/errors"
import (
errorsmod "cosmossdk.io/errors"
)

var (
ErrInvalidAddress = errorsmod.Register(ModuleName, 3, "invalid address")
Expand Down
4 changes: 3 additions & 1 deletion x/staking/types/params.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package types

import "time"
import (
"time"
)

// GrantExpirationTime period ends at Max Time supported by Amino
// (Dec 31, 9999 - 23:59:59 GMT).
Expand Down

0 comments on commit 20ddd35

Please sign in to comment.