mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
ethclient: fix test tx
This commit is contained in:
parent
a053d408ef
commit
3cf60d090c
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue