@@ -152,7 +152,6 @@ func batchClaim(
152
152
earnerAddr ,
153
153
tokenAddrs ,
154
154
sidecarClient ,
155
- blockHeight ,
156
155
)
157
156
158
157
if err != nil {
@@ -170,13 +169,11 @@ func getClaimableRewardsForEarner(
170
169
ctx context.Context ,
171
170
earnerAddress gethcommon.Address ,
172
171
sidecarClient rewardsV1.RewardsGatewayClient ,
173
- blockHeight uint64 ,
174
172
) (map [gethcommon.Address ]* big.Int , error ) {
175
173
summarizedRewards , err := sidecarClient .GetSummarizedRewardsForEarner (
176
174
ctx ,
177
175
& rewardsV1.GetSummarizedRewardsForEarnerRequest {
178
176
EarnerAddress : strings .ToLower (earnerAddress .String ()),
179
- BlockHeight : & blockHeight ,
180
177
},
181
178
)
182
179
if err != nil {
@@ -208,14 +205,13 @@ func generateClaimPayload(
208
205
earnerAddress gethcommon.Address ,
209
206
tokenAddresses []gethcommon.Address ,
210
207
sidecarClient rewardsV1.RewardsGatewayClient ,
211
- blockHeight uint64 ,
212
208
) (
213
209
* rewardsV1.Proof ,
214
210
error ,
215
211
) {
216
212
tokens := make ([]string , 0 )
217
213
if len (tokenAddresses ) == 0 {
218
- tokenMap , err := getClaimableRewardsForEarner (ctx , earnerAddress , sidecarClient , blockHeight )
214
+ tokenMap , err := getClaimableRewardsForEarner (ctx , earnerAddress , sidecarClient )
219
215
if err != nil {
220
216
return nil , eigenSdkUtils .WrapError ("failed to get claimable rewards for earner" , err )
221
217
}
@@ -304,7 +300,6 @@ func (c ClaimCmd) Execute(cCtx *cli.Context) error {
304
300
config .EarnerAddress ,
305
301
config .TokenAddresses ,
306
302
sidecarClient ,
307
- blockHeight ,
308
303
)
309
304
310
305
if err != nil {
0 commit comments