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

feat: unpack and log agglayer errors #158

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

goran-ethernal
Copy link
Collaborator

Description

This PR introduces error unpacking when getting a certificate header using the interop_getCertificateHeader rpc endpoint on agglayer.

When agglayer marks a certificate as InError it also packs the error in the json format of CertificateHeader status field. These errors can be different, where each error has its own unique error code and structure.

This PR handles unmarshaling of these different errors, so we can log them when we get the certificate header from agglayer, which can be useful for debugging purposes, to know in a clear way what was the cause of error when settling a certificate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant