Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed May 23, 2024
2 parents f5b61ce + 6290748 commit 789e143
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 55 deletions.
8 changes: 0 additions & 8 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ func NewNibiruApp(
app.SetProcessProposal(handler.ProcessProposalHandler())
})

baseAppOptions = append(baseAppOptions, func(app *baseapp.BaseApp) {
mp := mempool.NoOpMempool{}
app.SetMempool(mp)
handler := baseapp.NewDefaultProposalHandler(mp, app)
app.SetPrepareProposal(handler.PrepareProposalHandler())
app.SetProcessProposal(handler.ProcessProposalHandler())
})

bApp := baseapp.NewBaseApp(
appName, logger, db, encodingConfig.TxConfig.TxDecoder(), baseAppOptions...)
bApp.SetCommitMultiStoreTracer(traceStore)
Expand Down
3 changes: 2 additions & 1 deletion eth/chain_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"math/big"
"testing"

"github.com/NibiruChain/nibiru/app/appconst"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/NibiruChain/nibiru/app/appconst"
)

func TestParseChainID_Happy(t *testing.T) {
Expand Down
17 changes: 9 additions & 8 deletions eth/rpc/rpcapi/eth_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ import (
"strings"
"testing"

"github.com/NibiruChain/nibiru/app/appconst"
fixture "github.com/NibiruChain/nibiru/eth/rpc/rpcapi/fixture"
nibiCommon "github.com/NibiruChain/nibiru/x/common"
"github.com/NibiruChain/nibiru/x/common/denoms"
"github.com/NibiruChain/nibiru/x/evm/evmtest"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
Expand All @@ -26,6 +21,12 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/status-im/keycard-go/hexutils"

"github.com/NibiruChain/nibiru/app/appconst"
fixture "github.com/NibiruChain/nibiru/eth/rpc/rpcapi/fixture"
nibiCommon "github.com/NibiruChain/nibiru/x/common"
"github.com/NibiruChain/nibiru/x/common/denoms"
"github.com/NibiruChain/nibiru/x/evm/evmtest"

"github.com/stretchr/testify/suite"

"github.com/NibiruChain/nibiru/app"
Expand Down Expand Up @@ -191,7 +192,6 @@ func (s *IntegrationSuite) Test_SuggestGasPrice() {
// TODO: the backend method is stubbed to 0
_, err := s.ethClient.SuggestGasPrice(context.Background())
s.NoError(err)

}

// Test_SimpleTransferTransaction EVM method: eth_sendRawTransaction
Expand All @@ -204,7 +204,8 @@ func (s *IntegrationSuite) Test_SimpleTransferTransaction() {
senderBalanceBefore, err := s.ethClient.BalanceAt(
context.Background(), s.fundedAccEthAddr, nil,
)
recipientAddr := ethCommon.BytesToAddress(testutilcli.NewAccount(s.network, "recepient"))
s.NoError(err)
recipientAddr := ethCommon.BytesToAddress(testutilcli.NewAccount(s.network, "recipient"))
recipientBalanceBefore, err := s.ethClient.BalanceAt(context.Background(), recipientAddr, nil)
s.NoError(err)
s.Equal(int64(0), recipientBalanceBefore.Int64())
Expand Down Expand Up @@ -291,7 +292,7 @@ func (s *IntegrationSuite) Test_SmartContract() {
GasPrice: big.NewInt(1),
Data: input,
})

s.NoError(err)
err = s.ethClient.SendTransaction(context.Background(), tx)
s.NoError(err)
s.NoError(s.network.WaitForNextBlock())
Expand Down
30 changes: 0 additions & 30 deletions x/evm/keeper/config.go

This file was deleted.

13 changes: 5 additions & 8 deletions x/evm/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@ import (
"errors"
"fmt"
"math/big"

"time"

"github.com/ethereum/go-ethereum/common/hexutil"

"github.com/NibiruChain/nibiru/eth"
"github.com/NibiruChain/nibiru/x/evm/statedb"

grpccodes "google.golang.org/grpc/codes"
grpcstatus "google.golang.org/grpc/status"

Expand All @@ -23,16 +17,19 @@ import (
storetypes "github.com/cosmos/cosmos-sdk/store/types"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/NibiruChain/nibiru/eth"
"github.com/NibiruChain/nibiru/x/evm"
"github.com/NibiruChain/nibiru/x/evm/statedb"

gethcommon "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core"
gethcore "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/eth/tracers"
"github.com/ethereum/go-ethereum/eth/tracers/logger"
gethparams "github.com/ethereum/go-ethereum/params"

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

cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
)

Expand Down

0 comments on commit 789e143

Please sign in to comment.