@@ -296,7 +296,7 @@ var bindTests = []struct {
296296 `
297297 // Generate a new random account and a funded simulator
298298 key, _ := crypto.GenerateKey()
299- auth := bind.NewKeyedTransactor (key)
299+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
300300
301301 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
302302 defer sim.Close()
@@ -351,7 +351,7 @@ var bindTests = []struct {
351351 `
352352 // Generate a new random account and a funded simulator
353353 key, _ := crypto.GenerateKey()
354- auth := bind.NewKeyedTransactor (key)
354+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
355355
356356 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
357357 defer sim.Close()
@@ -397,7 +397,7 @@ var bindTests = []struct {
397397 `
398398 // Generate a new random account and a funded simulator
399399 key, _ := crypto.GenerateKey()
400- auth := bind.NewKeyedTransactor (key)
400+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
401401
402402 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
403403 defer sim.Close()
@@ -455,7 +455,7 @@ var bindTests = []struct {
455455 `
456456 // Generate a new random account and a funded simulator
457457 key, _ := crypto.GenerateKey()
458- auth := bind.NewKeyedTransactor (key)
458+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
459459
460460 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
461461 defer sim.Close()
@@ -503,7 +503,7 @@ var bindTests = []struct {
503503 `
504504 // Generate a new random account and a funded simulator
505505 key, _ := crypto.GenerateKey()
506- auth := bind.NewKeyedTransactor (key)
506+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
507507
508508 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
509509 defer sim.Close()
@@ -598,7 +598,7 @@ var bindTests = []struct {
598598 `
599599 // Generate a new random account and a funded simulator
600600 key, _ := crypto.GenerateKey()
601- auth := bind.NewKeyedTransactor (key)
601+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
602602
603603 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
604604 defer sim.Close()
@@ -648,7 +648,7 @@ var bindTests = []struct {
648648 `
649649 // Generate a new random account and a funded simulator
650650 key, _ := crypto.GenerateKey()
651- auth := bind.NewKeyedTransactor (key)
651+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
652652
653653 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
654654 defer sim.Close()
@@ -723,7 +723,7 @@ var bindTests = []struct {
723723 `
724724 // Generate a new random account and a funded simulator
725725 key, _ := crypto.GenerateKey()
726- auth := bind.NewKeyedTransactor (key)
726+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
727727
728728 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
729729 defer sim.Close()
@@ -817,7 +817,7 @@ var bindTests = []struct {
817817 `
818818 // Generate a new random account and a funded simulator
819819 key, _ := crypto.GenerateKey()
820- auth := bind.NewKeyedTransactor (key)
820+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
821821
822822 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
823823 defer sim.Close()
@@ -1007,7 +1007,7 @@ var bindTests = []struct {
10071007 `
10081008 // Generate a new random account and a funded simulator
10091009 key, _ := crypto.GenerateKey()
1010- auth := bind.NewKeyedTransactor (key)
1010+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
10111011
10121012 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
10131013 defer sim.Close()
@@ -1142,7 +1142,7 @@ var bindTests = []struct {
11421142
11431143 `
11441144 key, _ := crypto.GenerateKey()
1145- auth := bind.NewKeyedTransactor (key)
1145+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
11461146
11471147 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
11481148 defer sim.Close()
@@ -1284,7 +1284,7 @@ var bindTests = []struct {
12841284 `
12851285 // Generate a new random account and a funded simulator
12861286 key, _ := crypto.GenerateKey()
1287- auth := bind.NewKeyedTransactor (key)
1287+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
12881288
12891289 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
12901290 defer sim.Close()
@@ -1350,7 +1350,7 @@ var bindTests = []struct {
13501350 `
13511351 // Initialize test accounts
13521352 key, _ := crypto.GenerateKey()
1353- auth := bind.NewKeyedTransactor (key)
1353+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
13541354 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
13551355 defer sim.Close()
13561356
@@ -1444,7 +1444,7 @@ var bindTests = []struct {
14441444 sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(1000000000)}}, 10000000)
14451445 defer sim.Close()
14461446
1447- transactOpts := bind.NewKeyedTransactor (key)
1447+ transactOpts, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
14481448 _, _, _, err := DeployIdentifierCollision(transactOpts, sim)
14491449 if err != nil {
14501450 t.Fatalf("failed to deploy contract: %v", err)
@@ -1506,7 +1506,7 @@ var bindTests = []struct {
15061506 sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(1000000000)}}, 10000000)
15071507 defer sim.Close()
15081508
1509- transactOpts := bind.NewKeyedTransactor (key)
1509+ transactOpts, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
15101510 _, _, c1, err := DeployContractOne(transactOpts, sim)
15111511 if err != nil {
15121512 t.Fatal("Failed to deploy contract")
@@ -1563,7 +1563,7 @@ var bindTests = []struct {
15631563 `
15641564 // Generate a new random account and a funded simulator
15651565 key, _ := crypto.GenerateKey()
1566- auth := bind.NewKeyedTransactor (key)
1566+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
15671567
15681568 sim := backends.NewSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000)
15691569 defer sim.Close()
@@ -1632,7 +1632,7 @@ var bindTests = []struct {
16321632 sim := backends.NewSimulatedBackend(core.GenesisAlloc{addr: {Balance: big.NewInt(1000000000)}}, 1000000)
16331633 defer sim.Close()
16341634
1635- opts := bind.NewKeyedTransactor (key)
1635+ opts, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
16361636 _, _, c, err := DeployNewFallbacks(opts, sim)
16371637 if err != nil {
16381638 t.Fatalf("Failed to deploy contract: %v", err)
0 commit comments