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

Enhance Non-Primitive Depolorizer Methods to Handle NULL Wire #19

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

sarvalabs-gokul
Copy link
Member

@sarvalabs-gokul sarvalabs-gokul commented Feb 19, 2024

Description

This pull request addresses a bug in the non-primitive methods which includes depolorizeArray, depolorizeMap, and depolorizeStruct. Previously, when encountering the WIRE_NULL wire type, these methods would an throw error. This update adds explicit handling for the WIRE_NULL case, ensuring that these methods now return appropriate empty values ([] for arrays, new Map() for maps, and {} for structs) instead of errors. This aligns the behavior with the expected functionality, enhancing the robustness and reliability of the codebase.

@sarvalabs-gokul sarvalabs-gokul added bug Something isn't working depolorizer Issues related to depolorizer labels Feb 19, 2024
@sarvalabs-gokul sarvalabs-gokul self-assigned this Feb 19, 2024
@sarvalabs-gokul sarvalabs-gokul changed the title Enhance Non-Primitive Depolorizer Methods to Handle WIRE_NULL Bug Enhance Non-Primitive Depolorizer Methods to Handle NULL WIRE Feb 19, 2024
@sarvalabs-gokul sarvalabs-gokul changed the title Enhance Non-Primitive Depolorizer Methods to Handle NULL WIRE Enhance Non-Primitive Depolorizer Methods to Handle NULL Wire Feb 19, 2024
@sarvalabs-gokul sarvalabs-gokul merged commit c9604a0 into main Feb 19, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working depolorizer Issues related to depolorizer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Non Primitive Depolorizer Methods
2 participants