@@ -296,7 +296,7 @@ var bindTests = []struct {
296
296
`
297
297
// Generate a new random account and a funded simulator
298
298
key, _ := crypto.GenerateKey()
299
- auth := bind.NewKeyedTransactor (key)
299
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
300
300
301
301
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
302
302
defer sim.Close()
@@ -351,7 +351,7 @@ var bindTests = []struct {
351
351
`
352
352
// Generate a new random account and a funded simulator
353
353
key, _ := crypto.GenerateKey()
354
- auth := bind.NewKeyedTransactor (key)
354
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
355
355
356
356
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
357
357
defer sim.Close()
@@ -397,7 +397,7 @@ var bindTests = []struct {
397
397
`
398
398
// Generate a new random account and a funded simulator
399
399
key, _ := crypto.GenerateKey()
400
- auth := bind.NewKeyedTransactor (key)
400
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
401
401
402
402
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
403
403
defer sim.Close()
@@ -455,7 +455,7 @@ var bindTests = []struct {
455
455
`
456
456
// Generate a new random account and a funded simulator
457
457
key, _ := crypto.GenerateKey()
458
- auth := bind.NewKeyedTransactor (key)
458
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
459
459
460
460
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
461
461
defer sim.Close()
@@ -503,7 +503,7 @@ var bindTests = []struct {
503
503
`
504
504
// Generate a new random account and a funded simulator
505
505
key, _ := crypto.GenerateKey()
506
- auth := bind.NewKeyedTransactor (key)
506
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
507
507
508
508
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
509
509
defer sim.Close()
@@ -598,7 +598,7 @@ var bindTests = []struct {
598
598
`
599
599
// Generate a new random account and a funded simulator
600
600
key, _ := crypto.GenerateKey()
601
- auth := bind.NewKeyedTransactor (key)
601
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
602
602
603
603
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
604
604
defer sim.Close()
@@ -648,7 +648,7 @@ var bindTests = []struct {
648
648
`
649
649
// Generate a new random account and a funded simulator
650
650
key, _ := crypto.GenerateKey()
651
- auth := bind.NewKeyedTransactor (key)
651
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
652
652
653
653
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
654
654
defer sim.Close()
@@ -723,7 +723,7 @@ var bindTests = []struct {
723
723
`
724
724
// Generate a new random account and a funded simulator
725
725
key, _ := crypto.GenerateKey()
726
- auth := bind.NewKeyedTransactor (key)
726
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
727
727
728
728
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
729
729
defer sim.Close()
@@ -817,7 +817,7 @@ var bindTests = []struct {
817
817
`
818
818
// Generate a new random account and a funded simulator
819
819
key, _ := crypto.GenerateKey()
820
- auth := bind.NewKeyedTransactor (key)
820
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
821
821
822
822
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
823
823
defer sim.Close()
@@ -1007,7 +1007,7 @@ var bindTests = []struct {
1007
1007
`
1008
1008
// Generate a new random account and a funded simulator
1009
1009
key, _ := crypto.GenerateKey()
1010
- auth := bind.NewKeyedTransactor (key)
1010
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
1011
1011
1012
1012
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
1013
1013
defer sim.Close()
@@ -1142,7 +1142,7 @@ var bindTests = []struct {
1142
1142
1143
1143
`
1144
1144
key, _ := crypto.GenerateKey()
1145
- auth := bind.NewKeyedTransactor (key)
1145
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
1146
1146
1147
1147
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
1148
1148
defer sim.Close()
@@ -1284,7 +1284,7 @@ var bindTests = []struct {
1284
1284
`
1285
1285
// Generate a new random account and a funded simulator
1286
1286
key, _ := crypto.GenerateKey()
1287
- auth := bind.NewKeyedTransactor (key)
1287
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
1288
1288
1289
1289
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
1290
1290
defer sim.Close()
@@ -1350,7 +1350,7 @@ var bindTests = []struct {
1350
1350
`
1351
1351
// Initialize test accounts
1352
1352
key, _ := crypto.GenerateKey()
1353
- auth := bind.NewKeyedTransactor (key)
1353
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
1354
1354
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
1355
1355
defer sim.Close()
1356
1356
@@ -1444,7 +1444,7 @@ var bindTests = []struct {
1444
1444
sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(1000000000)}}, 10000000)
1445
1445
defer sim.Close()
1446
1446
1447
- transactOpts := bind.NewKeyedTransactor (key)
1447
+ transactOpts, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
1448
1448
_, _, _, err := DeployIdentifierCollision(transactOpts, sim)
1449
1449
if err != nil {
1450
1450
t.Fatalf("failed to deploy contract: %v", err)
@@ -1506,7 +1506,7 @@ var bindTests = []struct {
1506
1506
sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(1000000000)}}, 10000000)
1507
1507
defer sim.Close()
1508
1508
1509
- transactOpts := bind.NewKeyedTransactor (key)
1509
+ transactOpts, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
1510
1510
_, _, c1, err := DeployContractOne(transactOpts, sim)
1511
1511
if err != nil {
1512
1512
t.Fatal("Failed to deploy contract")
@@ -1563,7 +1563,7 @@ var bindTests = []struct {
1563
1563
`
1564
1564
// Generate a new random account and a funded simulator
1565
1565
key, _ := crypto.GenerateKey()
1566
- auth := bind.NewKeyedTransactor (key)
1566
+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
1567
1567
1568
1568
sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
1569
1569
defer sim.Close()
@@ -1632,7 +1632,7 @@ var bindTests = []struct {
1632
1632
sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(1000000000)}}, 1000000)
1633
1633
defer sim.Close()
1634
1634
1635
- opts := bind.NewKeyedTransactor (key)
1635
+ opts, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
1636
1636
_, _, c, err := DeployNewFallbacks(opts, sim)
1637
1637
if err != nil {
1638
1638
t.Fatalf("Failed to deploy contract: %v", err)
0 commit comments