diff --git a/eth/rpc/backend/backend_suite_test.go b/eth/rpc/backend/backend_suite_test.go index 34b8dd88d..a7efa8665 100644 --- a/eth/rpc/backend/backend_suite_test.go +++ b/eth/rpc/backend/backend_suite_test.go @@ -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) diff --git a/eth/rpc/backend/tx_logs_test.go b/eth/rpc/backend/tx_logs_test.go index bfcfde152..e9e43a927 100644 --- a/eth/rpc/backend/tx_logs_test.go +++ b/eth/rpc/backend/tx_logs_test.go @@ -4,6 +4,12 @@ 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" @@ -11,11 +17,6 @@ import ( "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. diff --git a/eth/rpc/backend/utils_test.go b/eth/rpc/backend/utils_test.go index 8166ce075..083d24361 100644 --- a/eth/rpc/backend/utils_test.go +++ b/eth/rpc/backend/utils_test.go @@ -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() { @@ -31,7 +32,6 @@ func (s *BackendSuite) TestGetLogsFromBlockResults() { }, }, }, logs[0], "deploy contract tx") - } func (s *BackendSuite) TestGetHexProofs() {