@@ -253,6 +253,7 @@ func TestEthBroadcaster_ProcessUnstartedEthTxs_Success(t *testing.T) {
253253 FeeLimit : gasLimit ,
254254 BroadcastAt : & timeNow ,
255255 InitialBroadcastAt : & timeNow ,
256+ ChainID : testutils .FixtureChainID ,
256257 Error : null.String {},
257258 State : txmgrcommon .TxUnconfirmed ,
258259 }
@@ -285,6 +286,7 @@ func TestEthBroadcaster_ProcessUnstartedEthTxs_Success(t *testing.T) {
285286 FeeLimit : gasLimit ,
286287 CreatedAt : time .Unix (0 , 0 ),
287288 State : txmgrcommon .TxUnstarted ,
289+ ChainID : testutils .FixtureChainID ,
288290 }
289291 ethClient .On ("SendTransactionReturnCode" , mock .Anything , mock .MatchedBy (func (tx * gethTypes.Transaction ) bool {
290292 return tx .Nonce () == uint64 (2 ) && tx .Value ().Cmp (big .NewInt (242 )) == 0
@@ -304,6 +306,7 @@ func TestEthBroadcaster_ProcessUnstartedEthTxs_Success(t *testing.T) {
304306 CreatedAt : time .Unix (0 , 1 ),
305307 State : txmgrcommon .TxUnstarted ,
306308 Meta : & meta ,
309+ ChainID : testutils .FixtureChainID ,
307310 }
308311 ethClient .On ("SendTransactionReturnCode" , mock .Anything , mock .MatchedBy (func (tx * gethTypes.Transaction ) bool {
309312 if tx .Nonce () != uint64 (0 ) {
@@ -327,6 +330,7 @@ func TestEthBroadcaster_ProcessUnstartedEthTxs_Success(t *testing.T) {
327330 FeeLimit : gasLimit ,
328331 CreatedAt : time .Unix (1 , 0 ),
329332 State : txmgrcommon .TxUnstarted ,
333+ ChainID : testutils .FixtureChainID ,
330334 }
331335 ethClient .On ("SendTransactionReturnCode" , mock .Anything , mock .MatchedBy (func (tx * gethTypes.Transaction ) bool {
332336 if tx .Nonce () != uint64 (1 ) {
@@ -786,6 +790,7 @@ func TestEthBroadcaster_ProcessUnstartedEthTxs_ResumingFromCrash(t *testing.T) {
786790 FeeLimit : gasLimit ,
787791 Error : null.String {},
788792 State : txmgrcommon .TxInProgress ,
793+ ChainID : testutils .FixtureChainID ,
789794 }
790795
791796 secondInProgress := txmgr.Tx {
@@ -797,6 +802,7 @@ func TestEthBroadcaster_ProcessUnstartedEthTxs_ResumingFromCrash(t *testing.T) {
797802 FeeLimit : gasLimit ,
798803 Error : null.String {},
799804 State : txmgrcommon .TxInProgress ,
805+ ChainID : testutils .FixtureChainID ,
800806 }
801807
802808 require .NoError (t , txStore .InsertTx (ctx , & firstInProgress ))
@@ -1162,6 +1168,7 @@ func TestEthBroadcaster_ProcessUnstartedEthTxs_Errors(t *testing.T) {
11621168 State : txmgrcommon .TxUnstarted ,
11631169 PipelineTaskRunID : uuid.NullUUID {UUID : trID , Valid : true },
11641170 SignalCallback : true ,
1171+ ChainID : testutils .FixtureChainID ,
11651172 }
11661173
11671174 t .Run ("with erroring callback bails out" , func (t * testing.T ) {
@@ -1464,6 +1471,7 @@ func TestEthBroadcaster_ProcessUnstartedEthTxs_Errors(t *testing.T) {
14641471 Value : value ,
14651472 FeeLimit : gasLimit ,
14661473 State : txmgrcommon .TxUnstarted ,
1474+ ChainID : testutils .FixtureChainID ,
14671475 }
14681476 require .NoError (t , txStore .InsertTx (ctx , & etxUnfinished ))
14691477
@@ -1874,7 +1882,7 @@ func TestEthBroadcaster_NonceTracker_InProgressTx(t *testing.T) {
18741882 txStore := txmgrtest .NewTestTxStore (t , db )
18751883 memKS := keystest .NewMemoryChainStore ()
18761884 fromAddress := memKS .MustCreate (t )
1877- ethKeyStore := keys .NewChainStore (memKS , big . NewInt ( 0 ) )
1885+ ethKeyStore := keys .NewChainStore (memKS , testutils . FixtureChainID )
18781886
18791887 ethClient := clienttest .NewClientWithDefaultChainID (t )
18801888 evmcfg := configtest .NewChainScopedConfig (t , nil )
@@ -1912,7 +1920,7 @@ func TestEthBroadcaster_HederaBroadcastValidation(t *testing.T) {
19121920 db := testutils .NewSqlxDB (t )
19131921 txStore := txmgrtest .NewTestTxStore (t , db )
19141922 memKS := keystest .NewMemoryChainStore ()
1915- ethKeyStore := keys .NewChainStore (memKS , big . NewInt ( 0 ) )
1923+ ethKeyStore := keys .NewChainStore (memKS , testutils . FixtureChainID )
19161924 evmcfg := configtest .NewChainScopedConfig (t , nil )
19171925 ethClient := clienttest .NewClientWithDefaultChainID (t )
19181926 lggr , observed := logger .TestObserved (t , zapcore .DebugLevel )
0 commit comments