Skip to content

Commit

Permalink
fix : initialize channel twice, the other should be publication
Browse files Browse the repository at this point in the history
  • Loading branch information
PavitraAgarwal21 committed Nov 13, 2024
1 parent bd8aa84 commit 710011f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hub/hub.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ pub mod ColonizHub {
impl ProfileImpl = ProfileComponent::colonizProfile<ContractState>;
#[abi(embed_v0)]
impl PublicationImpl = PublicationComponent::colonizPublication<ContractState>;
impl PublicationPrivateImpl = PublicationComponent::InternalImpl<ContractState>;

impl ProfilePrivateImpl = ProfileComponent::Private<ContractState>;

Expand Down Expand Up @@ -132,7 +133,7 @@ pub mod ColonizHub {
self.handle_contract_address.write(handle_contract_address);
self.handle_registry_contract_address.write(handle_registry_contract_address);
self.channel._initializer(channel_nft_classhash);
self.channel._initializer(collect_nft_classhash);
self.publication._initializer(collect_nft_classhash);
self.community._initializer(community_nft_classhash);
self.jolt._initializer(owner);
}
Expand Down

0 comments on commit 710011f

Please sign in to comment.