Skip to content

Comments

Improve error message clarity in IDelegationManager interface#1295

Closed
GarmashAlex wants to merge 7 commits intoLayr-Labs:mainfrom
GarmashAlex:hpp31
Closed

Improve error message clarity in IDelegationManager interface#1295
GarmashAlex wants to merge 7 commits intoLayr-Labs:mainfrom
GarmashAlex:hpp31

Conversation

@GarmashAlex
Copy link

Motivation:

The current error messages in IDelegationManager don't provide enough context when exceptions occur. When errors are thrown during contract interactions, developers need to search through the codebase to understand what caused the issue. This lack of clarity increases debugging time and makes the system harder to use, especially for new developers integrating with EigenLayer.

Modifications:

  • Added a new InputAddressZero error to explicitly handle zero address validations
  • Enhanced the error documentation with clearer descriptions to explain error conditions
  • Maintained full backward compatibility by keeping the existing error structure intact
  • Ensured error messages provide more specific context about the conditions that trigger them

Result:

After these changes, developers will receive more informative error messages when interacting with the delegation system. This will streamline the debugging process, reduce integration time, and make the codebase more maintainable. The improved error documentation also serves as better self-documentation for the contract's expected behavior, without changing any of the actual contract logic or execution flow.

bowenli86 and others added 7 commits April 1, 2025 11:33
**Motivation:**

chain_id is currently an github secrets, but not used anywhere

**Modifications:**

remove chain id from secrets and env vars 

**Result:**

one less useless secret, no impact on ci
**Motivation:**

per eigengit, main will be the new canonical branch

**Modifications:**

change push branch from dev to main

**Result:**

ci will be run on PRs against main
**Motivation:**

fork-based pr cannot use secrets or github token

**Modifications:**

disable auto labeler to prepare for enabling fork-based pr

**Result:**

auto labeler is disabled, will be potentially removed in future soon
**Motivation:**

*Explain here the context, and why you're making that change. What is
the problem you're trying to solve.*

**Modifications:**

*Describe the modifications you've done.*

**Result:**

*After your change, what will change.*
**Motivation:**

remove holesky rpc since it's not used anywhere

**Modifications:**

remove holesky rpc

**Result:**

remove holesky rpc
**Motivation:**

make testing of fork based pr easier by splitting workflows require
secrets vs not

**Modifications:**

splitting workflows require secrets vs not into 2 gh workflow files

**Result:**

splitting workflows require secrets vs not into 2 gh workflow files
Enhanced error message readability in the IDelegationManager interface by adding more descriptive documentation to error declarations. Added a new InputAddressZero error to handle zero address input validation more explicitly. These improvements make error messages more informative for developers working with the delegation system, providing better context when issues occur during contract interactions.
@bowenli86 bowenli86 force-pushed the main branch 4 times, most recently from b6b9c4c to 5ffb1b8 Compare April 21, 2025 21:08
@GarmashAlex GarmashAlex closed this by deleting the head repository May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants