From 3cf60d090c6678e66260129a70f01e3686a6c9c1 Mon Sep 17 00:00:00 2001 From: Ceyhun Onur Date: Sat, 24 Aug 2024 17:14:18 +0300 Subject: [PATCH] ethclient: fix test tx --- ethclient/simulated/backend_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ethclient/simulated/backend_test.go b/ethclient/simulated/backend_test.go index 3d7430b882..308f5c44c9 100644 --- a/ethclient/simulated/backend_test.go +++ b/ethclient/simulated/backend_test.go @@ -258,10 +258,7 @@ func TestCommitReturnValue(t *testing.T) { } // Create a block in the original chain (containing a transaction to force different block hashes) - head, _ := client.HeaderByNumber(ctx, nil) // Should be child's, good enough - gasPrice := new(big.Int).Add(head.BaseFee, big.NewInt(1)) - _tx := types.NewTransaction(0, testAddr, big.NewInt(1000), params.TxGas, gasPrice, nil) - tx, _ := types.SignTx(_tx, types.HomesteadSigner{}, testKey) + tx, _ := newTx(sim, testKey) if err := client.SendTransaction(ctx, tx); err != nil { t.Errorf("sending transaction: %v", err) }