Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode revert codes for AVS contracts #137

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

mikhailUshakoff
Copy link
Collaborator

No description provided.

if let Ok(error_code) = u32::from_str_radix(&data[3..data.len() - 1], 16) {
return match error_code {
// PreconfRegistry
0xc3be614d => "PreconferAlreadyRegistered(): The preconfer is already registered in the registry".to_string(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks great, please just add some unit test.

@mikhailUshakoff mikhailUshakoff merged commit 2b7f8c9 into master Sep 24, 2024
1 check passed
@mikhailUshakoff mikhailUshakoff deleted the mu/error-handling branch September 24, 2024 07:04
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