@@ -86,9 +86,9 @@ func (w *AvsWriter) SendTask(context context.Context, batchMerkleRoot [32]byte,
8686}
8787
8888func (w * AvsWriter ) SendAggregatedResponse (ctx context.Context , batchMerkleRoot [32 ]byte , nonSignerStakesAndSignature servicemanager.IBLSSignatureCheckerNonSignerStakesAndSignature ) (* gethtypes.Receipt , error ) {
89- txOpts := w .Signer .GetTxOpts ()
89+ txOpts := * w .Signer .GetTxOpts ()
9090 txOpts .NoSend = true // simulate the transaction
91- tx , err := w .AvsContractBindings .ServiceManager .RespondToTask (txOpts , batchMerkleRoot , nonSignerStakesAndSignature )
91+ tx , err := w .AvsContractBindings .ServiceManager .RespondToTask (& txOpts , batchMerkleRoot , nonSignerStakesAndSignature )
9292 if err != nil {
9393 w .logger .Error ("Error submitting SubmitTaskResponse tx while calling respondToTask" , "err" , err )
9494 return nil , err
@@ -97,7 +97,7 @@ func (w *AvsWriter) SendAggregatedResponse(ctx context.Context, batchMerkleRoot
9797 // Send the transaction
9898 txOpts .NoSend = false
9999 txOpts .GasLimit = tx .Gas () * 110 / 100 // Add 10% to the gas limit
100- tx , err = w .AvsContractBindings .ServiceManager .RespondToTask (txOpts , batchMerkleRoot , nonSignerStakesAndSignature )
100+ tx , err = w .AvsContractBindings .ServiceManager .RespondToTask (& txOpts , batchMerkleRoot , nonSignerStakesAndSignature )
101101 if err != nil {
102102 w .logger .Error ("Error submitting SubmitTaskResponse tx while calling respondToTask" , "err" , err )
103103 return nil , err
0 commit comments