From 5665cbfa6aefecaf1b232f69f0a46807bb25d4a2 Mon Sep 17 00:00:00 2001 From: Kevin Yang <5478483+k-yang@users.noreply.github.com> Date: Tue, 18 Jun 2024 08:57:22 -0400 Subject: [PATCH] chore: linter --- app/evmante_can_transfer.go | 5 +++-- app/evmante_fees.go | 3 ++- app/evmante_gas_consume.go | 7 ++++--- app/evmante_increment_sender_seq.go | 3 ++- app/evmante_reject_msgs.go | 3 ++- app/evmante_sigverify.go | 3 ++- app/evmante_validate_basic.go | 3 ++- app/evmante_verify_eth_acc_test.go | 7 ++++--- 8 files changed, 21 insertions(+), 13 deletions(-) diff --git a/app/evmante_can_transfer.go b/app/evmante_can_transfer.go index 2f54676c8..c6c019538 100644 --- a/app/evmante_can_transfer.go +++ b/app/evmante_can_transfer.go @@ -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 diff --git a/app/evmante_fees.go b/app/evmante_fees.go index c9db047e6..001b01d4e 100644 --- a/app/evmante_fees.go +++ b/app/evmante_fees.go @@ -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{} diff --git a/app/evmante_gas_consume.go b/app/evmante_gas_consume.go index 1d049715b..003de8e78 100644 --- a/app/evmante_gas_consume.go +++ b/app/evmante_gas_consume.go @@ -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 diff --git a/app/evmante_increment_sender_seq.go b/app/evmante_increment_sender_seq.go index ab04e2b7c..7ac523d8c 100644 --- a/app/evmante_increment_sender_seq.go +++ b/app/evmante_increment_sender_seq.go @@ -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. diff --git a/app/evmante_reject_msgs.go b/app/evmante_reject_msgs.go index d820fd85c..b3fe421a3 100644 --- a/app/evmante_reject_msgs.go +++ b/app/evmante_reject_msgs.go @@ -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 diff --git a/app/evmante_sigverify.go b/app/evmante_sigverify.go index fb9078f73..21dc9ad88 100644 --- a/app/evmante_sigverify.go +++ b/app/evmante_sigverify.go @@ -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 diff --git a/app/evmante_validate_basic.go b/app/evmante_validate_basic.go index 24c050393..cfc7ffd44 100644 --- a/app/evmante_validate_basic.go +++ b/app/evmante_validate_basic.go @@ -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 diff --git a/app/evmante_verify_eth_acc_test.go b/app/evmante_verify_eth_acc_test.go index 94cb3cf67..250936678 100644 --- a/app/evmante_verify_eth_acc_test.go +++ b/app/evmante_verify_eth_acc_test.go @@ -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(