From 5705881bde9e5ad8ad7ee40a5378510a9bdc3fa1 Mon Sep 17 00:00:00 2001 From: Aivaras Ko Date: Tue, 12 Nov 2024 13:25:32 +0200 Subject: [PATCH] Fix panic: runtime error on SetClaimer --- pkg/rewards/setclaimer.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/rewards/setclaimer.go b/pkg/rewards/setclaimer.go index 3a11aee6..345707e5 100644 --- a/pkg/rewards/setclaimer.go +++ b/pkg/rewards/setclaimer.go @@ -80,6 +80,9 @@ func SetClaimer(cCtx *cli.Context, p utils.Prompter) error { noSendTxOpts := common.GetNoSendTxOpts(config.EarnerAddress) unsignedTx, err := contractBindings.RewardsCoordinator.SetClaimerFor(noSendTxOpts, config.ClaimerAddress) + if err != nil { + return eigenSdkUtils.WrapError("failed to create unsigned tx", err) + } if config.OutputType == string(common.OutputType_Calldata) { if err != nil {