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

chore: enforce type on oracle callback function #15

Merged
merged 2 commits into from
May 22, 2023

Conversation

TomAFrench
Copy link
Member

Related issue(s)

Related to #8

Description

Summary of changes

This PR enforces that any oracle callback passed to execute_circuit must satisfy the type (name: string, inputs: string[]) => Promise<string[]>

Dependency additions / changes

Test additions / changes

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Documentation needs

  • This PR requires documentation updates when merged.

Additional context

@TomAFrench TomAFrench force-pushed the enforce-oracle-callback-type branch from 248c92a to 06b135d Compare May 22, 2023 11:22
@TomAFrench TomAFrench merged commit 23f8c22 into master May 22, 2023
@TomAFrench TomAFrench deleted the enforce-oracle-callback-type branch May 22, 2023 11:47
TomAFrench added a commit that referenced this pull request May 22, 2023
* master:
  chore: enforce type on oracle callback function (#15)
  chore: add jsdoc for `execute_circuit` (#13)
  chore: add release-please action (#12)
  chore: add smoketest for build-info (#11)
  chore(ci): add eslint to CI (#10)
  feat: Enforce `WitnessMap` type in TS (#9)
  chore: add type aliases for tests (#7)
  feat: use JS naming convention for generated functions (#6)
  chore: remove unnecessary peer dependency
kobyhallx pushed a commit to noir-lang/acvm that referenced this pull request Jul 26, 2023
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.

1 participant