From 41b24bb53262c974cb88caf60163a142b8097103 Mon Sep 17 00:00:00 2001 From: Madhur Shrimal Date: Mon, 26 Aug 2024 21:03:34 -0700 Subject: [PATCH] comments --- pkg/rewards/claim.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/rewards/claim.go b/pkg/rewards/claim.go index aefa982..8b929b5 100644 --- a/pkg/rewards/claim.go +++ b/pkg/rewards/claim.go @@ -205,8 +205,9 @@ func Claim(cCtx *cli.Context, p utils.Prompter) error { } // If claimer is a smart contract, we can't estimate gas using geth - // since it doesn't support estimate gas for calling smart contract - // from smart contract. So we set a default gas limit. + // since balance of contract can be 0, as it can be called by an EOA + // to claim. So we hardcode the gas limit to 150_000 so that we can + // create unsigned tx without gas limit estimation from contract bindings code, err := ethClient.CodeAt(ctx, config.ClaimerAddress, nil) if err != nil { return eigenSdkUtils.WrapError("failed to get code at address", err)