Skip to content

Commit

Permalink
chore: scarb fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Darlington02 committed Oct 14, 2024
1 parent fbabfd6 commit 28660e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/channel/channel.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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}
};
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/community/community.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -811,4 +811,4 @@ pub mod CommunityComponent {
.burn_nft(profile, token_id);
}
}
}
}
4 changes: 3 additions & 1 deletion src/interfaces/IChannel.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ pub trait IChannel<TState> {
// *************************************************************************
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;
Expand Down

0 comments on commit 28660e6

Please sign in to comment.