From 710011f2f0646011af1d8fcdebb9e075552e4748 Mon Sep 17 00:00:00 2001 From: PavitraAgarwal21 Date: Thu, 14 Nov 2024 03:09:05 +0530 Subject: [PATCH] fix : initialize channel twice, the other should be publication --- src/hub/hub.cairo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hub/hub.cairo b/src/hub/hub.cairo index 6a90bd2..1b2ff17 100644 --- a/src/hub/hub.cairo +++ b/src/hub/hub.cairo @@ -55,6 +55,7 @@ pub mod ColonizHub { impl ProfileImpl = ProfileComponent::colonizProfile; #[abi(embed_v0)] impl PublicationImpl = PublicationComponent::colonizPublication; + impl PublicationPrivateImpl = PublicationComponent::InternalImpl; impl ProfilePrivateImpl = ProfileComponent::Private; @@ -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); }