Skip to content

Commit

Permalink
Add executor_contract getter
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri committed Feb 23, 2024
1 parent e165fac commit 3a9e133
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/lib/contracts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const LOADNEXT_CONTRACT_FILE: &str =
"etc/contracts-test-data/artifacts-zk/contracts/loadnext/loadnext_contract.sol/LoadnextContract.json";
const LOADNEXT_SIMPLE_CONTRACT_FILE: &str =
"etc/contracts-test-data/artifacts-zk/contracts/loadnext/loadnext_contract.sol/Foo.json";
const EXECUTOR_CONTRACT_FILE: &str =
"contracts/l1-contracts/artifacts/cache/solpp-generated-contracts/zksync/facets/Executor.sol/ExecutorFacet.json";

fn read_file_to_json_value(path: impl AsRef<Path>) -> serde_json::Value {
let zksync_home = std::env::var("ZKSYNC_HOME").unwrap_or_else(|_| ".".into());
Expand Down Expand Up @@ -91,6 +93,10 @@ pub fn verifier_contract() -> Contract {
load_contract(VERIFIER_CONTRACT_FILE)
}

pub fn executor_contract() -> Contract {
load_contract(EXECUTOR_CONTRACT_FILE)
}

#[derive(Debug, Clone)]
pub struct TestContract {
/// Contract bytecode to be used for sending deploy transaction.
Expand Down

0 comments on commit 3a9e133

Please sign in to comment.