Skip to content

Commit

Permalink
wrap error
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Jul 2, 2024
1 parent 4d57b5a commit 9ae2d87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chainio/clients/elcontracts/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,12 @@ func (w *ELChainWriter) ProcessClaim(

noSendTxOpts, err := w.txMgr.GetNoSendTxOpts()
if err != nil {
return nil, err
return nil, utils.WrapError("failed to get no send tx opts", err)
}

tx, err := w.rewardsCoordinator.ProcessClaim(noSendTxOpts, claim, earnerAddress)
if err != nil {
return nil, err
return nil, utils.WrapError("failed to create ProcessClaim tx", err)
}
receipt, err := w.txMgr.Send(ctx, tx)
if err != nil {
Expand Down

0 comments on commit 9ae2d87

Please sign in to comment.