Skip to content

Commit

Permalink
chore: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yang committed Jun 18, 2024
1 parent 1cbddb1 commit 5665cbf
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 13 deletions.
5 changes: 3 additions & 2 deletions app/evmante_can_transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (
"math/big"

"cosmossdk.io/errors"
"github.com/NibiruChain/nibiru/x/evm/statedb"
"github.com/NibiruChain/nibiru/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
gethcommon "github.com/ethereum/go-ethereum/common"
gethcore "github.com/ethereum/go-ethereum/core/types"

"github.com/NibiruChain/nibiru/x/evm/statedb"
"github.com/NibiruChain/nibiru/x/evm/types"
)

// CanTransferDecorator checks if the sender is allowed to transfer funds according to the EVM block
Expand Down
3 changes: 2 additions & 1 deletion app/evmante_fees.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"math/big"

"cosmossdk.io/errors"
"github.com/NibiruChain/nibiru/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
gethcore "github.com/ethereum/go-ethereum/core/types"

"github.com/NibiruChain/nibiru/x/evm/types"
)

var _ sdk.AnteDecorator = EthMinGasPriceDecorator{}
Expand Down
7 changes: 4 additions & 3 deletions app/evmante_gas_consume.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (
"math"

"cosmossdk.io/errors"
"github.com/NibiruChain/nibiru/eth"
"github.com/NibiruChain/nibiru/x/evm/keeper"
"github.com/NibiruChain/nibiru/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
gethcommon "github.com/ethereum/go-ethereum/common"

"github.com/NibiruChain/nibiru/eth"
"github.com/NibiruChain/nibiru/x/evm/keeper"
"github.com/NibiruChain/nibiru/x/evm/types"
)

// AnteDecEthGasConsume validates enough intrinsic gas for the transaction and
Expand Down
3 changes: 2 additions & 1 deletion app/evmante_increment_sender_seq.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package app

import (
"cosmossdk.io/errors"
"github.com/NibiruChain/nibiru/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
gethcommon "github.com/ethereum/go-ethereum/common"

"github.com/NibiruChain/nibiru/x/evm/types"
)

// AnteDecEthIncrementSenderSequence increments the sequence of the signers.
Expand Down
3 changes: 2 additions & 1 deletion app/evmante_reject_msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package app

import (
"cosmossdk.io/errors"
"github.com/NibiruChain/nibiru/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"

"github.com/NibiruChain/nibiru/x/evm/types"
)

// AnteDecoratorPreventEtheruemTxMsgs prevents invalid msg types from being executed
Expand Down
3 changes: 2 additions & 1 deletion app/evmante_sigverify.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"math/big"

"cosmossdk.io/errors"
"github.com/NibiruChain/nibiru/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
gethcore "github.com/ethereum/go-ethereum/core/types"

"github.com/NibiruChain/nibiru/x/evm/types"
)

// EthSigVerificationDecorator validates an ethereum signatures
Expand Down
3 changes: 2 additions & 1 deletion app/evmante_validate_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (

errorsmod "cosmossdk.io/errors"
sdkmath "cosmossdk.io/math"
"github.com/NibiruChain/nibiru/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
errortypes "github.com/cosmos/cosmos-sdk/types/errors"
gethcore "github.com/ethereum/go-ethereum/core/types"

"github.com/NibiruChain/nibiru/x/evm/types"
)

// EthValidateBasicDecorator is adapted from ValidateBasicDecorator from cosmos-sdk, it ignores ErrNoSignatures
Expand Down
7 changes: 4 additions & 3 deletions app/evmante_verify_eth_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package app_test
import (
"math/big"

sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
gethparams "github.com/ethereum/go-ethereum/params"

"github.com/NibiruChain/nibiru/app"
"github.com/NibiruChain/nibiru/x/evm/evmtest"
"github.com/NibiruChain/nibiru/x/evm/statedb"
"github.com/NibiruChain/nibiru/x/evm/types"
sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
gethparams "github.com/ethereum/go-ethereum/params"
)

var NextNoOpAnteHandler sdk.AnteHandler = func(
Expand Down

0 comments on commit 5665cbf

Please sign in to comment.