Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve timestamp resolution #2007

Merged
merged 14 commits into from
Apr 14, 2023
Prev Previous commit
Next Next commit
fix test
  • Loading branch information
ToniRamirezM committed Apr 12, 2023
commit 2c3f35595fa9099e673bd90691ed11fad9b1e351
4 changes: 3 additions & 1 deletion test/e2e/preEIP155_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -85,7 +86,8 @@ func TestPreEIP155Tx(t *testing.T) {
if network.ChainID == operations.DefaultL2ChainID {
go func() {
time.Sleep(30 * time.Second)
localClient := operations.MustGetClient(network.URL)
localClient, err := ethclient.Dial(network.URL)
require.NoError(t, err)

tx := types.NewTransaction(nonce+1, toAddress, big.NewInt(10000), gas, gasPrice, nil)
_, err = operations.ApplyL2Txs(context.Background(), []*types.Transaction{tx}, auth, localClient, operations.TrustedConfirmationLevel)
Expand Down