From 28660e6de672bdf32709e2895a0fff7d12f5b5c7 Mon Sep 17 00:00:00 2001 From: Darlington02 Date: Mon, 14 Oct 2024 01:51:46 +0100 Subject: [PATCH] chore: scarb fmt --- src/channel/channel.cairo | 6 +++--- src/community/community.cairo | 2 +- src/interfaces/IChannel.cairo | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/channel/channel.cairo b/src/channel/channel.cairo index f3462a4..27f6056 100644 --- a/src/channel/channel.cairo +++ b/src/channel/channel.cairo @@ -19,7 +19,8 @@ pub mod ChannelComponent { use karst::base::{ constants::errors::Errors::{ NOT_CHANNEL_OWNER, ALREADY_MEMBER, NOT_CHANNEL_MEMBER, NOT_MEMBER, BANNED_FROM_CHANNEL, - CHANNEL_HAS_NO_MEMBER, UNAUTHORIZED, INVALID_LENGTH, COMMUNITY_DOES_NOT_EXIST, NOT_CHANNEL_MODERATOR + CHANNEL_HAS_NO_MEMBER, UNAUTHORIZED, INVALID_LENGTH, COMMUNITY_DOES_NOT_EXIST, + NOT_CHANNEL_MODERATOR }, constants::types::{ChannelDetails, ChannelMember} }; @@ -127,8 +128,7 @@ pub mod ChannelComponent { // check that community exists let community_instance = get_dep_component!(@self, Community); - let _community_id = community_instance - .get_community(community_id).community_id; + let _community_id = community_instance.get_community(community_id).community_id; assert(community_id == _community_id, COMMUNITY_DOES_NOT_EXIST); // deploy channel nft diff --git a/src/community/community.cairo b/src/community/community.cairo index d7ca6e8..29f2d65 100644 --- a/src/community/community.cairo +++ b/src/community/community.cairo @@ -811,4 +811,4 @@ pub mod CommunityComponent { .burn_nft(profile, token_id); } } -} \ No newline at end of file +} diff --git a/src/interfaces/IChannel.cairo b/src/interfaces/IChannel.cairo index b77e391..ec1a7d4 100644 --- a/src/interfaces/IChannel.cairo +++ b/src/interfaces/IChannel.cairo @@ -24,7 +24,9 @@ pub trait IChannel { // ************************************************************************* fn get_channel(self: @TState, channel_id: u256) -> ChannelDetails; fn get_channel_metadata_uri(self: @TState, channel_id: u256) -> ByteArray; - fn is_channel_member(self: @TState, profile: ContractAddress, channel_id: u256) -> (bool, ChannelMember); + fn is_channel_member( + self: @TState, profile: ContractAddress, channel_id: u256 + ) -> (bool, ChannelMember); fn get_total_members(self: @TState, channel_id: u256) -> u256; fn is_channel_mod(self: @TState, profile: ContractAddress, channel_id: u256) -> bool; fn get_channel_censorship_status(self: @TState, channel_id: u256) -> bool;