Skip to content

Commit 23c6b79

Browse files
accounts/abi/bind/backends: fix test
1 parent 0168222 commit 23c6b79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

accounts/abi/bind/util_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import (
2929
"github.com/ethereum/go-ethereum/core"
3030
"github.com/ethereum/go-ethereum/core/types"
3131
"github.com/ethereum/go-ethereum/crypto"
32+
"github.com/ethereum/go-ethereum/params"
3233
)
3334

3435
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
@@ -115,7 +116,7 @@ func TestWaitDeployedCornerCases(t *testing.T) {
115116
// Create a transaction to an account.
116117
code := "6060604052600a8060106000396000f360606040526008565b00"
117118
tx := types.NewTransaction(0, common.HexToAddress("0x01"), big.NewInt(0), 3000000, gasPrice, common.FromHex(code))
118-
tx, _ = types.SignTx(tx, types.HomesteadSigner{}, testKey)
119+
tx, _ = types.SignTx(tx, types.LatestSigner(params.AllDevChainProtocolChanges), testKey)
119120
ctx, cancel := context.WithCancel(context.Background())
120121
defer cancel()
121122
backend.SendTransaction(ctx, tx)
@@ -127,7 +128,7 @@ func TestWaitDeployedCornerCases(t *testing.T) {
127128

128129
// Create a transaction that is not mined.
129130
tx = types.NewContractCreation(1, big.NewInt(0), 3000000, gasPrice, common.FromHex(code))
130-
tx, _ = types.SignTx(tx, types.HomesteadSigner{}, testKey)
131+
tx, _ = types.SignTx(tx, types.LatestSigner(params.AllDevChainProtocolChanges), testKey)
131132

132133
go func() {
133134
contextCanceled := errors.New("context canceled")

0 commit comments

Comments
 (0)