From 89a595473e9c165bb51fae44739e588ea732618f Mon Sep 17 00:00:00 2001 From: Lana Ivina Date: Wed, 21 Aug 2024 13:31:48 +0200 Subject: [PATCH] minor fix for scarb format --- contracts/src/components/registry/registry.cairo | 2 +- contracts/src/components/registry/registry_mock.cairo | 3 +-- contracts/src/components/registry/registry_test.cairo | 6 ++++-- contracts/src/lib.cairo | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/contracts/src/components/registry/registry.cairo b/contracts/src/components/registry/registry.cairo index d3b301e..760acd2 100644 --- a/contracts/src/components/registry/registry.cairo +++ b/contracts/src/components/registry/registry.cairo @@ -68,7 +68,7 @@ pub mod RegistryComponent { self.Registry_registrations.write((caller, offchain_id.clone()), true); // emit registration event - self.emit(RegistrationEvent { caller : caller, offchain_id : offchain_id }); + self.emit(RegistrationEvent { caller: caller, offchain_id: offchain_id }); } } } diff --git a/contracts/src/components/registry/registry_mock.cairo b/contracts/src/components/registry/registry_mock.cairo index b5beece..cf8d231 100644 --- a/contracts/src/components/registry/registry_mock.cairo +++ b/contracts/src/components/registry/registry_mock.cairo @@ -39,8 +39,7 @@ pub mod RegistryMock { // #[constructor] - fn constructor(ref self: ContractState) { - // Nothing to be done + fn constructor(ref self: ContractState) {// Nothing to be done } } diff --git a/contracts/src/components/registry/registry_test.cairo b/contracts/src/components/registry/registry_test.cairo index adfda4d..f241cd5 100644 --- a/contracts/src/components/registry/registry_test.cairo +++ b/contracts/src/components/registry/registry_test.cairo @@ -1,12 +1,14 @@ use zkramp::components::registry::interface::{IRegistryDispatcher, IRegistryDispatcherTrait}; use zkramp::components::registry::registry_mock::RegistryMock; -use zkramp::tests::utils; use zkramp::tests::constants; +use zkramp::tests::utils; /// Deploys the registry mock contract. fn setup_contracts() -> IRegistryDispatcher { // deploy registry - let registry_contract_address = utils::deploy(RegistryMock::TEST_CLASS_HASH, calldata: array![]); + let registry_contract_address = utils::deploy( + RegistryMock::TEST_CLASS_HASH, calldata: array![] + ); IRegistryDispatcher { contract_address: registry_contract_address } } diff --git a/contracts/src/lib.cairo b/contracts/src/lib.cairo index c89034e..386364e 100644 --- a/contracts/src/lib.cairo +++ b/contracts/src/lib.cairo @@ -1,6 +1,6 @@ pub mod components; pub mod contracts; -pub mod utils; #[cfg(test)] pub mod tests; +pub mod utils;