Skip to content

Conversation

@PraneshASP
Copy link

Closes #399

Ran some tests and went ahead with using specific error names without any params as it was around ~20% gas efficient compared to other 2 options (bytes4 and string param w/ custom errors).


contract MockPayerWithSignature is Ownable {
/// @dev Unauthorized orchestrator in pay function.
error UnauthorizedOrchestrator();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we get a different error here? there's an UnauthorizedOrchestrator in the account already

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed to UnapprovedOrchestrator() in mocks.

@PraneshASP PraneshASP requested a review from howydev October 18, 2025 16:18
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.

Add more specific errors in the Account and Orchestrator

2 participants