Skip to content

Commit

Permalink
refactor(aztec-nr): unify contexts behind interfaces (#5294)
Browse files Browse the repository at this point in the history
* Unified common parts of `{Public,Private,AVM}Context` behind `ContextInterface`
* Created (temporary) `PublicContextInterface` to unify `Public/AVM`
  • Loading branch information
fcarreiro authored and AztecBot committed Mar 21, 2024
1 parent 3b4f49a commit 3909d31
Show file tree
Hide file tree
Showing 6 changed files with 441 additions and 292 deletions.
6 changes: 3 additions & 3 deletions aztec/src/context.nr
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ mod inputs;

mod private_context;
mod public_context;
mod avm_context;
mod interface;
mod avm;

use private_context::PrivateContext;
use interface::ContextInterface;
use private_context::PrivateContext;
use public_context::PublicContext;
use avm::AVMContext;
use avm_context::AVMContext;

struct Context {
private: Option<&mut PrivateContext>,
Expand Down
172 changes: 0 additions & 172 deletions aztec/src/context/avm.nr

This file was deleted.

Loading

0 comments on commit 3909d31

Please sign in to comment.