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

Fix decoding w/ arrays #53

Merged
merged 2 commits into from
Aug 19, 2023

Conversation

MrSaints
Copy link
Contributor

Component can be null, resulting in an empty array being set by default, but we are not appropriately handling it:

TypeError: Cannot read properties of undefined (reading 'name')

The newly added test captures this case.

Component can be null, resulting in an empty array being set by default,
but we are not appropriately handling it:

    TypeError: Cannot read properties of undefined (reading 'name')

The newly added test captures this case.
@lbeder
Copy link
Member

lbeder commented Aug 19, 2023

Thanks for your contribution @MrSaints! Could you just make sure to the PR passes linter checks (https://github.com/ethereum-attestation-service/eas-sdk/actions/runs/5909071300/job/16031960766?pr=53)?

@MrSaints
Copy link
Contributor Author

Updated @lbeder :) Thanks.

@lbeder lbeder merged commit 9d3a909 into ethereum-attestation-service:master Aug 19, 2023
1 check passed
@MrSaints MrSaints deleted the fix-decoder branch August 19, 2023 20:00
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.

3 participants