Skip to content

Commit

Permalink
remove logs and send error
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Jun 27, 2024
1 parent aa18aee commit 599a317
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions chainio/clients/elcontracts/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package elcontracts
import (
"context"
"errors"
"github.com/Layr-Labs/eigensdk-go/utils"

"math/big"

Expand Down Expand Up @@ -311,7 +312,6 @@ func (w *ELChainWriter) SetClaimerFor(
return nil, errors.New("RewardsCoordinator contract not provided")
}

w.logger.Infof("setting claimer %s", claimer)
noSendTxOpts, err := w.txMgr.GetNoSendTxOpts()
if err != nil {
return nil, err
Expand All @@ -323,9 +323,8 @@ func (w *ELChainWriter) SetClaimerFor(
}
receipt, err := w.txMgr.Send(ctx, tx)
if err != nil {
return nil, errors.New("failed to send tx with err: " + err.Error())
return nil, utils.WrapError("failed to send tx", err)
}

w.logger.Infof("set claimer %s successful", claimer)
return receipt, nil
}

0 comments on commit 599a317

Please sign in to comment.