@@ -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
3435var 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