Skip to content

Commit

Permalink
refactor & lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ocdbytes committed Nov 24, 2024
1 parent 8902beb commit 374bcb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/l2/starknet-core-contract-client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use std::sync::Arc;

use crate::clients::{StarknetCoreContractClient, StarknetCoreContractOverrideClient};
use crate::clients::{StarknetCoreContractClient, StarknetDevCoreContractClient};
use starknet_proxy_client::deploy::{deploy_contract_behind_proxy, Error, ProxyVersion};
use utils::{LocalWalletSignerMiddleware, NO_CONSTRUCTOR_ARG};

pub mod clients;
pub mod interfaces;

const STARKNET_CORE_CONTRACT: &str = include_str!("../../../../artifacts/cairo-lang/Starknet.json");
const STARKNET_CORE_CONTRACT_OVERRIDE: &str =
const STARKNET_DEV_CORE_CONTRACT: &str =
include_str!("../../../../artifacts/StarknetOverride.json");

pub enum CoreContractType {
Expand All @@ -19,7 +19,7 @@ pub enum CoreContractType {
}

pub enum CoreContractClientType {
Dev(StarknetCoreContractOverrideClient),
Dev(StarknetDevCoreContractClient),
Production(StarknetCoreContractClient),
}

Expand All @@ -32,13 +32,13 @@ pub async fn deploy_starknet_core_contract_behind_proxy(
CoreContractType::Dev => {
let core_contract = deploy_contract_behind_proxy(
client.clone(),
STARKNET_CORE_CONTRACT_OVERRIDE,
STARKNET_DEV_CORE_CONTRACT,
NO_CONSTRUCTOR_ARG,
proxy_type,
)
.await?;
Ok(CoreContractClientType::Dev(
StarknetCoreContractOverrideClient::new(
StarknetDevCoreContractClient::new(
core_contract.0.address(),
client.clone(),
core_contract.1.address(),
Expand Down

0 comments on commit 374bcb5

Please sign in to comment.