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

Switch Acir function Ids from raw integers to a struct type #5700

Closed
vezenovm opened this issue Aug 8, 2024 · 0 comments · Fixed by #5748
Closed

Switch Acir function Ids from raw integers to a struct type #5700

vezenovm opened this issue Aug 8, 2024 · 0 comments · Fixed by #5748
Labels
ACIR/ACVM enhancement New feature or request good first issue Good for newcomers

Comments

@vezenovm
Copy link
Contributor

vezenovm commented Aug 8, 2024

Problem

In our Call opcode we have a raw integer type representing the Id of the function we want to call. We should avoid a raw integer type for an identifier.

Happy Case

This should be wrapped in a struct type like AcirFunctionId. The type should also be transparent as to not affect serialization.

Workaround

None

Workaround Description

No response

Additional Context

No response

Project Impact

None

Blocker Context

No response

Would you like to submit a PR for this Issue?

None

Support Needs

No response

@vezenovm vezenovm added enhancement New feature or request good first issue Good for newcomers ACIR/ACVM labels Aug 8, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Aug 8, 2024
github-merge-queue bot pushed a commit that referenced this issue Aug 19, 2024
# Description

## Problem\*

Resolves #5700

## Summary\*

This PR includes an `AcirFunctionId` struct in place of raw integer
identifier in the `Call` opcode to facilitate type safety.

## Additional Context

- The `AcirFunctionId` struct is transparent for compatibility with
serialization.

## Documentation\*

Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACIR/ACVM enhancement New feature or request good first issue Good for newcomers
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant