@@ -64,7 +64,7 @@ func TestSimulatedBackend(t *testing.T) {
64
64
65
65
code := `6060604052600a8060106000396000f360606040526008565b00`
66
66
var gas uint64 = 3000000
67
- tx := types .NewContractCreation (0 , big .NewInt (0 ), gas , gasPrice , nil , nil , nil , common .FromHex (code ))
67
+ tx := types .NewContractCreation (0 , big .NewInt (0 ), gas , gasPrice , common .FromHex (code ))
68
68
tx , _ = types .SignTx (tx , types.HomesteadSigner {}, key )
69
69
70
70
err = sim .SendTransaction (context .Background (), tx )
@@ -125,12 +125,12 @@ func TestNewSimulatedBackend(t *testing.T) {
125
125
sim := simTestBackend (testAddr )
126
126
defer sim .Close ()
127
127
128
- if sim .config != params .IstanbulTestChainConfig {
129
- t .Errorf ("expected sim config to equal params.IstanbulTestChainConfig , got %v" , sim .config )
128
+ if sim .config != params .TestChainConfig {
129
+ t .Errorf ("expected sim config to equal params.TestChainConfig , got %v" , sim .config )
130
130
}
131
131
132
- if sim .blockchain .Config () != params .IstanbulTestChainConfig {
133
- t .Errorf ("expected sim blockchain config to equal params.IstanbulTestChainConfig , got %v" , sim .config )
132
+ if sim .blockchain .Config () != params .TestChainConfig {
133
+ t .Errorf ("expected sim blockchain config to equal params.TestChainConfig , got %v" , sim .config )
134
134
}
135
135
136
136
stateDB , _ := sim .blockchain .State ()
@@ -162,7 +162,7 @@ func TestNewAdjustTimeFail(t *testing.T) {
162
162
// Create tx and send
163
163
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
164
164
165
- tx := types .NewTransaction (0 , testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
165
+ tx := types .NewTransaction (0 , testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
166
166
signedTx , err := types .SignTx (tx , types.HomesteadSigner {}, testKey )
167
167
if err != nil {
168
168
t .Errorf ("could not sign tx: %v" , err )
@@ -183,7 +183,7 @@ func TestNewAdjustTimeFail(t *testing.T) {
183
183
t .Errorf ("adjusted time not equal to a minute. prev: %v, new: %v" , prevTime , newTime )
184
184
}
185
185
// Put a transaction after adjusting time
186
- tx2 := types .NewTransaction (1 , testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
186
+ tx2 := types .NewTransaction (1 , testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
187
187
signedTx2 , err := types .SignTx (tx2 , types.HomesteadSigner {}, testKey )
188
188
if err != nil {
189
189
t .Errorf ("could not sign tx: %v" , err )
@@ -285,7 +285,7 @@ func TestNonceAt(t *testing.T) {
285
285
// head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
286
286
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
287
287
288
- tx := types .NewTransaction (nonce , testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
288
+ tx := types .NewTransaction (nonce , testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
289
289
signedTx , err := types .SignTx (tx , types.HomesteadSigner {}, testKey )
290
290
if err != nil {
291
291
t .Errorf ("could not sign tx: %v" , err )
@@ -329,7 +329,7 @@ func TestSendTransaction(t *testing.T) {
329
329
// head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
330
330
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
331
331
332
- tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
332
+ tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
333
333
signedTx , err := types .SignTx (tx , types.HomesteadSigner {}, testKey )
334
334
if err != nil {
335
335
t .Errorf ("could not sign tx: %v" , err )
@@ -367,7 +367,7 @@ func TestTransactionByHash(t *testing.T) {
367
367
// head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
368
368
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
369
369
370
- tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
370
+ tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
371
371
signedTx , err := types .SignTx (tx , types.HomesteadSigner {}, testKey )
372
372
if err != nil {
373
373
t .Errorf ("could not sign tx: %v" , err )
@@ -615,7 +615,7 @@ func TestTransactionCount(t *testing.T) {
615
615
// head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
616
616
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
617
617
618
- tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
618
+ tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
619
619
signedTx , err := types .SignTx (tx , types.HomesteadSigner {}, testKey )
620
620
if err != nil {
621
621
t .Errorf ("could not sign tx: %v" , err )
@@ -672,7 +672,7 @@ func TestTransactionInBlock(t *testing.T) {
672
672
// head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
673
673
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
674
674
675
- tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
675
+ tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
676
676
signedTx , err := types .SignTx (tx , types.HomesteadSigner {}, testKey )
677
677
if err != nil {
678
678
t .Errorf ("could not sign tx: %v" , err )
@@ -730,7 +730,7 @@ func TestPendingNonceAt(t *testing.T) {
730
730
// head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
731
731
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
732
732
733
- tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
733
+ tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
734
734
signedTx , err := types .SignTx (tx , types.HomesteadSigner {}, testKey )
735
735
if err != nil {
736
736
t .Errorf ("could not sign tx: %v" , err )
@@ -753,7 +753,7 @@ func TestPendingNonceAt(t *testing.T) {
753
753
}
754
754
755
755
// make a new transaction with a nonce of 1
756
- tx = types .NewTransaction (uint64 (1 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
756
+ tx = types .NewTransaction (uint64 (1 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
757
757
signedTx , err = types .SignTx (tx , types.HomesteadSigner {}, testKey )
758
758
if err != nil {
759
759
t .Errorf ("could not sign tx: %v" , err )
@@ -785,7 +785,7 @@ func TestTransactionReceipt(t *testing.T) {
785
785
//// head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
786
786
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
787
787
788
- tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
788
+ tx := types .NewTransaction (uint64 (0 ), testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
789
789
signedTx , err := types .SignTx (tx , types.HomesteadSigner {}, testKey )
790
790
if err != nil {
791
791
t .Errorf ("could not sign tx: %v" , err )
@@ -1211,7 +1211,7 @@ func TestForkResendTx(t *testing.T) {
1211
1211
// head, _ := sim.HeaderByNumber(context.Background(), nil) // Should be child's, good enough
1212
1212
gasPrice := new (big.Int ).Add (genericBaseFee , big .NewInt (1 ))
1213
1213
1214
- _tx := types .NewTransaction (0 , testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil , nil , nil , nil )
1214
+ _tx := types .NewTransaction (0 , testAddr , big .NewInt (1000 ), params .TxGas , gasPrice , nil )
1215
1215
tx , _ := types .SignTx (_tx , types.HomesteadSigner {}, testKey )
1216
1216
sim .SendTransaction (context .Background (), tx )
1217
1217
sim .Commit ()
0 commit comments