Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/escrow/escrow_factory.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ pub mod EscrowFactory {
};
use core::traits::{TryInto, Into};

const ESCROW_CONTRACT_CLASS_HASH: felt252 = 0x7df01639865aa375e6c7d9fb1ce5bbc3cbc404ac10984d5f3d76edfe6db3933;
const ESCROW_CONTRACT_CLASS_HASH: felt252 =
0x7df01639865aa375e6c7d9fb1ce5bbc3cbc404ac10984d5f3d76edfe6db3933;

#[storage]
struct Storage {
Expand Down Expand Up @@ -62,9 +63,7 @@ pub mod EscrowFactory {
escrow_address
}

fn get_escrow_contracts(
self: @ComponentState<TContractState>,
) -> Array<ContractAddress> {
fn get_escrow_contracts(self: @ComponentState<TContractState>,) -> Array<ContractAddress> {
let escrow_count = self.escrow_count.read();
let mut escrow_addresses: Array<ContractAddress> = array![];

Expand Down
2 changes: 1 addition & 1 deletion src/escrownet.cairo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod escrownet;

use escrownet::Escrownet;
use escrownet::Escrownet;
12 changes: 3 additions & 9 deletions src/escrownet/escrownet.cairo
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#[starknet::interface]
pub trait IEscrownet<TContractState> {

}
pub trait IEscrownet<TContractState> {}


#[starknet::contract]
pub mod Escrownet {

use super::{IEscrownet};
use escrownet_contract::escrow::escrow_factory::EscrowFactory;

Expand All @@ -31,8 +28,5 @@ pub mod Escrownet {


#[abi(embed_v0)]
impl EscrownetImpl of IEscrownet<ContractState> {

}

}
impl EscrownetImpl of IEscrownet<ContractState> {}
}
2 changes: 1 addition & 1 deletion src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod escrow;
pub mod interface;
pub mod escrownet;
pub mod escrownet;