@@ -228,7 +228,7 @@ var bindTests = []struct {
228228 `
229229 // Generate a new random account and a funded simulator
230230 key, _ := crypto.GenerateKey()
231- auth := bind.NewKeyedTransactor (key)
231+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
232232 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
233233
234234 // Deploy an interaction tester contract and call a transaction on it
@@ -269,7 +269,7 @@ var bindTests = []struct {
269269 `
270270 // Generate a new random account and a funded simulator
271271 key, _ := crypto.GenerateKey()
272- auth := bind.NewKeyedTransactor (key)
272+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
273273 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
274274
275275 // Deploy a tuple tester contract and execute a structured call on it
@@ -301,7 +301,7 @@ var bindTests = []struct {
301301 `
302302 // Generate a new random account and a funded simulator
303303 key, _ := crypto.GenerateKey()
304- auth := bind.NewKeyedTransactor (key)
304+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
305305 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
306306
307307 // Deploy a tuple tester contract and execute a structured call on it
@@ -343,7 +343,7 @@ var bindTests = []struct {
343343 `
344344 // Generate a new random account and a funded simulator
345345 key, _ := crypto.GenerateKey()
346- auth := bind.NewKeyedTransactor (key)
346+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
347347 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
348348
349349 // Deploy a slice tester contract and execute a n array call on it
@@ -377,7 +377,7 @@ var bindTests = []struct {
377377 `
378378 // Generate a new random account and a funded simulator
379379 key, _ := crypto.GenerateKey()
380- auth := bind.NewKeyedTransactor (key)
380+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
381381 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
382382
383383 // Deploy a default method invoker contract and execute its default method
@@ -446,7 +446,7 @@ var bindTests = []struct {
446446 `
447447 // Generate a new random account and a funded simulator
448448 key, _ := crypto.GenerateKey()
449- auth := bind.NewKeyedTransactor (key)
449+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
450450 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
451451
452452 // Deploy a funky gas pattern contract
@@ -481,7 +481,7 @@ var bindTests = []struct {
481481 `
482482 // Generate a new random account and a funded simulator
483483 key, _ := crypto.GenerateKey()
484- auth := bind.NewKeyedTransactor (key)
484+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
485485 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
486486
487487 // Deploy a sender tester contract and execute a structured call on it
@@ -541,7 +541,7 @@ var bindTests = []struct {
541541 `
542542 // Generate a new random account and a funded simulator
543543 key, _ := crypto.GenerateKey()
544- auth := bind.NewKeyedTransactor (key)
544+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
545545 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
546546
547547 // Deploy a underscorer tester contract and execute a structured call on it
@@ -611,7 +611,7 @@ var bindTests = []struct {
611611 `
612612 // Generate a new random account and a funded simulator
613613 key, _ := crypto.GenerateKey()
614- auth := bind.NewKeyedTransactor (key)
614+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
615615 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
616616
617617 // Deploy an eventer contract
@@ -760,7 +760,7 @@ var bindTests = []struct {
760760 `
761761 // Generate a new random account and a funded simulator
762762 key, _ := crypto.GenerateKey()
763- auth := bind.NewKeyedTransactor (key)
763+ auth, _ := bind.NewKeyedTransactorWithChainID (key, big.NewInt(1337) )
764764 sim := backends.NewXDCSimulatedBackend(core.GenesisAlloc{auth.From: {Balance: big.NewInt(10000000000)}}, 10000000, params.TestXDPoSMockChainConfig)
765765
766766 //deploy the test contract
0 commit comments