From 471ec3c180bd4ea43c43d918f914b1a31ab82d1f Mon Sep 17 00:00:00 2001 From: diegoTech14 Date: Wed, 2 Oct 2024 15:10:11 -0600 Subject: [PATCH] fix: some comments details and expected fund message --- contracts/src/fundManager.cairo | 16 ++++++++-------- contracts/tests/test_fund_manager.cairo | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/contracts/src/fundManager.cairo b/contracts/src/fundManager.cairo index 28e1a20..7b815ac 100755 --- a/contracts/src/fundManager.cairo +++ b/contracts/src/fundManager.cairo @@ -12,9 +12,9 @@ pub trait IFundManager { #[starknet::contract] mod FundManager { - // ************************* + // *************************************************************************************** // IMPORT - // ************************* + // *************************************************************************************** use core::array::ArrayTrait; use core::traits::TryInto; use starknet::ContractAddress; @@ -22,9 +22,9 @@ mod FundManager { use starknet::class_hash::ClassHash; use starknet::get_caller_address; - // ************************* + // *************************************************************************************** // STORAGE - // ************************* + // *************************************************************************************** #[storage] struct Storage { owner: ContractAddress, @@ -33,9 +33,9 @@ mod FundManager { fund_class_hash: ClassHash, } - // ************************* + // *************************************************************************************** // CONSTRUCTOR - // ************************* + // *************************************************************************************** #[constructor] fn constructor(ref self: ContractState, fund_class_hash: felt252) { self.owner.write(get_caller_address()); @@ -43,9 +43,9 @@ mod FundManager { self.current_id.write(0); } - // ************************* + // *************************************************************************************** // EXTERNALS - // ************************* + // *************************************************************************************** #[abi(embed_v0)] impl FundManagerImpl of super::IFundManager { fn newFund(ref self: ContractState, name: felt252, goal: u64) { diff --git a/contracts/tests/test_fund_manager.cairo b/contracts/tests/test_fund_manager.cairo index b603b66..25ae3c2 100755 --- a/contracts/tests/test_fund_manager.cairo +++ b/contracts/tests/test_fund_manager.cairo @@ -65,7 +65,7 @@ fn test_constructor() { let expected_fund_address = fund_manager_contract.getFundClassHash(); let owner = fund_manager_contract.getOwner(); assert(owner == OWNER(), 'Invalid owner'); - assert(fund_class_hash == expected_fund_address, 'Invalid donator class hash'); + assert(fund_class_hash == expected_fund_address, 'Invalid fund class hash'); } #[test]