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

Handle missing extended provable methods #273

Merged
merged 2 commits into from
May 16, 2024
Merged

Handle missing extended provable methods #273

merged 2 commits into from
May 16, 2024

Conversation

mitschabaude
Copy link
Member

@mitschabaude mitschabaude commented May 16, 2024

companion of o1-labs/o1js#1657

  • when trying to compute empty(), toJSON() or fromJSON() on a provable that is missing it, throw an error instead of continuing to recurse into its properties (which just produces garbage)
  • some internal refactors of provable() to clean it up and make the logic mostly type-safe

@mitschabaude mitschabaude merged commit ceda064 into main May 16, 2024
1 check passed
@mitschabaude mitschabaude deleted the fix/empty branch May 16, 2024 15:01
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.

None yet

2 participants