@@ -98,9 +98,11 @@ func runOCR2Test(
9898 require .NoError (t , err , "Could not create relay logger" )
9999
100100 testKeystore := testutils .NewTestKeystore (pubAddress .String (), privateKey )
101- txmgr := txm .New (clientLogger , testKeystore , combinedClient . FullNodeClient () , txm.TronTxmConfig {
101+ txmgr := txm .New (clientLogger , testKeystore , combinedClient , txm.TronTxmConfig {
102102 BroadcastChanSize : 100 ,
103103 ConfirmPollSecs : 2 ,
104+ RetentionPeriod : 8 * time .Minute ,
105+ ReapInterval : 10 * time .Second ,
104106 })
105107 err = txmgr .Start (context .Background ())
106108 require .NoError (t , err )
@@ -149,10 +151,10 @@ func runOCR2Test(
149151 deployContract := func (contractName string , artifact * contract.Artifact , params []interface {}) address.Address {
150152 txHash := testutils .SignAndDeployContract (t , combinedClient , testKeystore , pubAddress , contractName , artifact .AbiJson , artifact .Bytecode , feeLimit , params )
151153 // use full node client for quicker feedback
152- txInfo := testutils .WaitForTransactionInfo (t , combinedClient . FullNodeClient () , txHash , txnWaitTime )
154+ txInfo := testutils .WaitForTransactionInfo (t , combinedClient , txHash , txnWaitTime )
153155 contractAddress , err := address .StringToAddress (txInfo .ContractAddress )
154156 require .NoError (t , err )
155- contractDeployed := testutils .CheckContractDeployed (t , combinedClient . FullNodeClient () , contractAddress )
157+ contractDeployed := testutils .CheckContractDeployed (t , combinedClient , contractAddress )
156158 require .True (t , contractDeployed , "Contract not deployed" )
157159 return contractAddress
158160 }
0 commit comments