@@ -92,7 +92,7 @@ func NewAvsWriterFromConfig(baseConfig *config.BaseConfig, ecdsaConfig *config.E
9292func (w * AvsWriter ) SendAggregatedResponse (batchIdentifierHash [32 ]byte , batchMerkleRoot [32 ]byte , senderAddress [20 ]byte , nonSignerStakesAndSignature servicemanager.IBLSSignatureCheckerNonSignerStakesAndSignature , gasBumpPercentage uint , gasBumpIncrementalPercentage uint , gasBumpPercentageLimit uint , timeToWaitBeforeBump time.Duration , metrics * metrics.Metrics , onSetGasPrice func (* big.Int )) (* types.Receipt , error ) {
9393 txOpts := * w .Signer .GetTxOpts ()
9494 txOpts .NoSend = true // simulate the transaction
95- simTx , err := w .RespondToTaskV2Retryable (& txOpts , batchMerkleRoot , senderAddress , nonSignerStakesAndSignature , retry .SendToChainRetryParams ())
95+ simTx , err := w .RespondToTaskRetryable (& txOpts , batchMerkleRoot , senderAddress , nonSignerStakesAndSignature , retry .SendToChainRetryParams ())
9696 if err != nil {
9797 return nil , err
9898 }
@@ -108,7 +108,7 @@ func (w *AvsWriter) SendAggregatedResponse(batchIdentifierHash [32]byte, batchMe
108108
109109 batchMerkleRootHashString := hex .EncodeToString (batchMerkleRoot [:])
110110
111- respondToTaskV2Func := func () (* types.Receipt , error ) {
111+ respondToTaskFunc := func () (* types.Receipt , error ) {
112112 gasPrice , err := utils .GetGasPriceRetryable (w .Client , w .ClientFallback , retry .NetworkRetryParams ())
113113 if err != nil {
114114 return nil , err
@@ -175,7 +175,7 @@ func (w *AvsWriter) SendAggregatedResponse(batchIdentifierHash [32]byte, batchMe
175175 }
176176
177177 w .logger .Infof ("Sending RespondToTask transaction with a gas price of %v" , txOpts .GasPrice , "merkle root" , batchMerkleRootHashString )
178- realTx , err := w .RespondToTaskV2Retryable (& txOpts , batchMerkleRoot , senderAddress , nonSignerStakesAndSignature , retry .SendToChainRetryParams ())
178+ realTx , err := w .RespondToTaskRetryable (& txOpts , batchMerkleRoot , senderAddress , nonSignerStakesAndSignature , retry .SendToChainRetryParams ())
179179 if err != nil {
180180 w .logger .Errorf ("Respond to task transaction err, %v" , err , "merkle root" , batchMerkleRootHashString )
181181 return nil , err
@@ -203,7 +203,7 @@ func (w *AvsWriter) SendAggregatedResponse(batchIdentifierHash [32]byte, batchMe
203203 // This just retries the bump of a fee in case of a timeout
204204 // The wait is done before on WaitForTransactionReceiptRetryable, and all the functions are retriable,
205205 // so this retry doesn't need to wait more time
206- return retry .RetryWithData (respondToTaskV2Func , retry .RespondToTaskV2 ())
206+ return retry .RetryWithData (respondToTaskFunc , retry .RespondToTask ())
207207}
208208
209209// Calculates the transaction cost from the receipt and updates the total amount paid by the aggregator metric
0 commit comments