-
Notifications
You must be signed in to change notification settings - Fork 16
feat: add method to generate the new Brillig
opcode from UnresolvedBrilligCall
#363
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rewrite the Brillig oracle tests to use this new interface?
Do we have tests for how to resolve Brillig calls from outside the ACVM? I can only see the tests in |
They are the main pwg tests: Line 428 in d5ba786
|
Done, although I think we should consider renaming the |
Although, come to think of it. By that logic maybe we should shorten |
Yeah I agree. I think we can bikeshed this name in general. Perhaps just |
Yeah, I think we can make this decision later as we'll "own" most of the broken code but doing it at the same time as a breaking change of oracle code makes sense. |
Description
Problem*
Resolves
Summary*
This PR aims to smooth out the devex of resolving a brillig foreign call by providing a helper function to generate an updated
Brillig
using the returned call result.This allows us to use the snippet below
as opposed to having to extract the
Brillig
struct from the foreign call and manually push a newForeignCallResult
onto one of its fields.Additional Context
PR Checklist*
cargo fmt
on default settings.BEGIN_COMMIT_OVERRIDE
feat: Add method to generate updated
Brillig
opcode fromUnresolvedBrilligCall
(#363)END_COMMIT_OVERRIDE