Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Aug 6, 2024
1 parent 59e06bd commit 3a5f418
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chainio/clients/elcontracts/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ func (w *ChainWriter) RegisterAsOperator(ctx context.Context, operator types.Ope

w.logger.Infof("registering operator %s to EigenLayer", operator.Address)
opDetails := delegationmanager.IDelegationManagerOperatorDetails{
// Earning receiver has been deprecated but just to make sure we have something in contract
// We just force it to be operator address
// Earning receiver has been deprecated, so we just use the operator address as a dummy value
// Any reward related setup is via RewardsCoordinator contract
DeprecatedEarningsReceiver: gethcommon.HexToAddress(operator.Address),
StakerOptOutWindowBlocks: operator.StakerOptOutWindowBlocks,
Expand Down Expand Up @@ -197,8 +196,7 @@ func (w *ChainWriter) UpdateOperatorDetails(

w.logger.Infof("updating operator details of operator %s to EigenLayer", operator.Address)
opDetails := delegationmanager.IDelegationManagerOperatorDetails{
// Earning receiver has been deprecated but just to make sure we have something in contract
// We just force it to be operator address
// Earning receiver has been deprecated, so we just use the operator address as a dummy value
// Any reward related setup is via RewardsCoordinator contract
DeprecatedEarningsReceiver: gethcommon.HexToAddress(operator.Address),
DelegationApprover: gethcommon.HexToAddress(operator.DelegationApproverAddress),
Expand Down

0 comments on commit 3a5f418

Please sign in to comment.