-
Notifications
You must be signed in to change notification settings - Fork 858
chore: unify circuits in integration tests #1104
Conversation
495f4f2
to
3f4358c
Compare
3f4358c
to
96fb753
Compare
Is it possible to use a struct to wrap the const generics of super circuit? It becomes longer and longer. difficult to read code without IDE |
I wish that was possible... Unfortunately the only supported const generic types are integers, |
I'm going to explore removing some of the const generics in SuperCircuit. |
@lispc I managed to remove
|
Note that this will partially help with #1097 as all of the tests will be now test/trait-based |
8d40c64
to
5fbae4f
Compare
@lispc are you happy to be the second reviewer? |
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.
LGTM!! Thanks for this work! It's nice to cleanup the codebase like this!
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.
lgtm. only one issue needs some investigation
- unify circuit proving test in integration tests with a single generic function that takes a SubCircuit - implement SubCircuit for SuperCircuit - fix: Invalid `SubCircuit.instance()` implementation for TxCircuit - allow setting the mock_randomness for the SuperCircuit externally
- Remove MAX_TXS, MAX_CALLDATA and MAX_RWS from SuperCircuitConfig - Remove MAX_RWS and MAX_CALLDATA from SuperCircuit
5fbae4f
to
7d66af3
Compare
SubCircuit.instance()
implementation for TxCircuitResolve #1099
Resolve #1081
Related to (hopefully this PR resolves some of these issues):