@@ -29,6 +29,7 @@ import (
29
29
"github.com/ethereum/go-ethereum/core"
30
30
"github.com/ethereum/go-ethereum/core/types"
31
31
"github.com/ethereum/go-ethereum/crypto"
32
+ "github.com/ethereum/go-ethereum/params"
32
33
)
33
34
34
35
var testKey , _ = crypto .HexToECDSA ("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291" )
@@ -115,7 +116,7 @@ func TestWaitDeployedCornerCases(t *testing.T) {
115
116
// Create a transaction to an account.
116
117
code := "6060604052600a8060106000396000f360606040526008565b00"
117
118
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 )
119
120
ctx , cancel := context .WithCancel (context .Background ())
120
121
defer cancel ()
121
122
backend .SendTransaction (ctx , tx )
@@ -127,7 +128,7 @@ func TestWaitDeployedCornerCases(t *testing.T) {
127
128
128
129
// Create a transaction that is not mined.
129
130
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 )
131
132
132
133
go func () {
133
134
contextCanceled := errors .New ("context canceled" )
0 commit comments