Skip to content

Commit

Permalink
fix: remove pointer for return value
Browse files Browse the repository at this point in the history
  • Loading branch information
gpabst committed Dec 11, 2024
1 parent 6b1cbb1 commit 702c9ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chainio/clients/elcontracts/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,16 +341,16 @@ func (r *ChainReader) GetOperatorAVSSplit(
ctx context.Context,
operator gethcommon.Address,
avs gethcommon.Address,
) (*uint16, error) {
) (uint16, error) {
if r.rewardsCoordinator == nil {
return nil, errors.New("RewardsCoordinator contract not provided")
return 0, errors.New("RewardsCoordinator contract not provided")
}

split, err := r.rewardsCoordinator.GetOperatorAVSSplit(&bind.CallOpts{Context: ctx}, operator, avs)

if err != nil {
return nil, err
return 0, err
}

return &split, err
return split, nil
}

0 comments on commit 702c9ec

Please sign in to comment.