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) }