diff --git a/pkg/common/helper.go b/pkg/common/helper.go index 345d052..d4b8e80 100644 --- a/pkg/common/helper.go +++ b/pkg/common/helper.go @@ -32,13 +32,17 @@ import ( func PrintRegistrationInfo(txHash string, operatorAddress common.Address, chainId *big.Int) { fmt.Println(strings.Repeat("-", 100)) + PrintTransactionInfo(txHash, chainId) + + color.Blue("%s Operator Web App Link: %s\n", utils.EmojiInternet, getWebAppLink(operatorAddress, chainId)) + fmt.Println(strings.Repeat("-", 100)) +} + +func PrintTransactionInfo(txHash string, chainId *big.Int) { fmt.Printf("%s Chain ID: %s\n", utils.EmojiLink, chainId.String()) if len(txHash) > 0 { fmt.Printf("%s Transaction Link: %s\n", utils.EmojiLink, GetTransactionLink(txHash, chainId)) } - - color.Blue("%s Operator Web App Link: %s\n", utils.EmojiInternet, getWebAppLink(operatorAddress, chainId)) - fmt.Println(strings.Repeat("-", 100)) } func GetWallet( diff --git a/pkg/rewards/claim.go b/pkg/rewards/claim.go index 0804887..63d986b 100644 --- a/pkg/rewards/claim.go +++ b/pkg/rewards/claim.go @@ -194,8 +194,8 @@ func Claim(cCtx *cli.Context, p utils.Prompter) error { return eigenSdkUtils.WrapError("failed to process claim", err) } - txLink := common.GetTransactionLink(receipt.TxHash.String(), config.ChainID) - logger.Infof("Claim transaction submitted successfully: %s", txLink) + logger.Infof("Claim transaction submitted successfully") + common.PrintTransactionInfo(receipt.TxHash.String(), config.ChainID) } else { solidityClaim := claimgen.FormatProofForSolidity(accounts.Root(), claim) fmt.Println("------- Claim generated -------") diff --git a/pkg/rewards/setclaimer.go b/pkg/rewards/setclaimer.go index 43c956f..c056615 100644 --- a/pkg/rewards/setclaimer.go +++ b/pkg/rewards/setclaimer.go @@ -139,9 +139,8 @@ func SetClaimer(cCtx *cli.Context, p utils.Prompter) error { config.EarnerAddress.Hex(), ) - common.PrintRegistrationInfo( + common.PrintTransactionInfo( receipt.TxHash.String(), - config.EarnerAddress, config.ChainID, )