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: ToBinary and nested Slices #34

Merged
merged 7 commits into from
Sep 5, 2023
Merged

fix: ToBinary and nested Slices #34

merged 7 commits into from
Sep 5, 2023

Conversation

Eagle941
Copy link
Contributor

@Eagle941 Eagle941 commented Sep 3, 2023

Summary

This code change allows direct indexing of elements returned by the ToBinary operation.

This branch also fixes the initialisation of nested arrays when used in Gadget inputs: the old code would assign a slice of type []frontend.Variable to a slice of type [][]frontend.Variable. The new code recursively walks through the nested arrays for correct assignments.

Details

Checklist

  • Documentation has been updated if necessary.

@Eagle941 Eagle941 requested a review from a team as a code owner September 3, 2023 18:00
@Eagle941 Eagle941 changed the title fix: ToBinary op fix: ToBinary op and nested Slices Sep 3, 2023
@Eagle941 Eagle941 changed the title fix: ToBinary op and nested Slices fix: ToBinary and nested Slices Sep 3, 2023
@Eagle941 Eagle941 merged commit 3203c7f into main Sep 5, 2023
@Eagle941 Eagle941 deleted the to_binary_fix branch September 5, 2023 12:41
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