Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
onikonychev committed Jan 10, 2025
1 parent eab54cf commit 7a49a1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
9 changes: 0 additions & 9 deletions eth/rpc/backend/backend_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,6 @@ func WaitForReceipt(s *BackendSuite, txHash gethcommon.Hash) (*big.Int, *gethcom
}
}

// getUnibiBalance returns the balance of an address in unibi
func (s *BackendSuite) getUnibiBalance(address gethcommon.Address) *big.Int {
latestBlock := rpc.EthLatestBlockNumber
latestBlockOrHash := rpc.BlockNumberOrHash{BlockNumber: &latestBlock}
balance, err := s.backend.GetBalance(address, latestBlockOrHash)
s.Require().NoError(err)
return evm.WeiToNative(balance.ToInt())
}

// getCurrentNonce returns the current nonce of the funded account
func (s *BackendSuite) getCurrentNonce(address gethcommon.Address) uint64 {
nonce, err := s.backend.GetTransactionCount(address, rpc.EthPendingBlockNumber)
Expand Down
11 changes: 6 additions & 5 deletions eth/rpc/backend/tx_logs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ import (
"fmt"
"math/big"

tmrpctypes "github.com/cometbft/cometbft/rpc/core/types"
sdk "github.com/cosmos/cosmos-sdk/types"
gethcommon "github.com/ethereum/go-ethereum/common"
gethcore "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"

"github.com/NibiruChain/nibiru/v2/eth"
"github.com/NibiruChain/nibiru/v2/eth/rpc/backend"
"github.com/NibiruChain/nibiru/v2/x/common/testutil"
"github.com/NibiruChain/nibiru/v2/x/evm"
"github.com/NibiruChain/nibiru/v2/x/evm/embeds"
"github.com/NibiruChain/nibiru/v2/x/evm/evmtest"
"github.com/NibiruChain/nibiru/v2/x/evm/precompile"
tmrpctypes "github.com/cometbft/cometbft/rpc/core/types"
sdk "github.com/cosmos/cosmos-sdk/types"
gethcommon "github.com/ethereum/go-ethereum/common"
gethcore "github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
)

// TestEthLogs checks that eth txs as well as funtoken txs produce tx_logs events and update tx index properly.
Expand Down
4 changes: 2 additions & 2 deletions eth/rpc/backend/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import (
gethcommon "github.com/ethereum/go-ethereum/common"
gethcore "github.com/ethereum/go-ethereum/core/types"

"github.com/NibiruChain/nibiru/v2/eth/rpc/backend"
gethcrypto "github.com/ethereum/go-ethereum/crypto"

"github.com/NibiruChain/nibiru/v2/eth/rpc/backend"
)

func (s *BackendSuite) TestGetLogsFromBlockResults() {
Expand All @@ -31,7 +32,6 @@ func (s *BackendSuite) TestGetLogsFromBlockResults() {
},
},
}, logs[0], "deploy contract tx")

}

func (s *BackendSuite) TestGetHexProofs() {
Expand Down

0 comments on commit 7a49a1b

Please sign in to comment.