Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Apr 2, 2024
1 parent 7ca84df commit 27465f1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pkg/rpc/ethclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import (
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/require"

"github.com/taikoxyz/taiko-client/internal/utils"
)

func TestBlockByHash(t *testing.T) {
Expand Down Expand Up @@ -46,33 +44,24 @@ func TestTransactionByHash(t *testing.T) {
}

func TestTransactionSender(t *testing.T) {
utils.LoadEnv()
client := newTestClientWithTimeout(t)

utils.MineL1Block(t, client.L1.Client)

block, err := client.L1.BlockByNumber(context.Background(), nil)
require.Nil(t, err)
require.NotZero(t, block.Transactions().Len())
}

func TestTransactionCount(t *testing.T) {
utils.LoadEnv()
client := newTestClientWithTimeout(t)

utils.MineL1Block(t, client.L1.Client)

block, err := client.L1.BlockByNumber(context.Background(), nil)
require.Nil(t, err)
require.NotZero(t, block.Transactions().Len())
}

func TestTransactionInBlock(t *testing.T) {
utils.LoadEnv()
client := newTestClientWithTimeout(t)

utils.MineL1Block(t, client.L1.Client)

block, err := client.L1.BlockByNumber(context.Background(), nil)
require.Nil(t, err)
require.NotZero(t, block.Transactions().Len())
Expand Down

0 comments on commit 27465f1

Please sign in to comment.