Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur committed Aug 27, 2024
1 parent 169343d commit 41b24bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/rewards/claim.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41b24bb

Please sign in to comment.