Skip to content

Commit

Permalink
fix refactor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-sawlani-yral committed Nov 14, 2024
1 parent 7d562a3 commit 4086287
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/canister/platform_orchestrator/src/data_model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ impl CanisterData {
individual_user_profile_id: Principal,
root_canister_ids: HashSet<Principal>,
) {
root_canister_ids.iter().for_each(|governance_canister_id| {
root_canister_ids.iter().for_each(|root_canister_id| {
self.creator_dao_stats
.insert_new_entry(individual_user_profile_id, *governance_canister_id);
.insert_new_entry(individual_user_profile_id, *root_canister_id);
});
}
}
6 changes: 3 additions & 3 deletions src/lib/shared_utils/src/types/creator_dao_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl CreatorDaoTokenStats {
pub fn insert_new_entry(
&mut self,
individual_user_profile_id: IndividualProfileId,
governance_canister_id: RootCanisterId,
root_canister_id: RootCanisterId,
) {
let individual_user_creator_dao_entry = self
.creator_dao_token_sns_canisters
Expand All @@ -31,7 +31,7 @@ impl CreatorDaoTokenStats {
if let Some(individual_user_creator_dao_entry) = individual_user_creator_dao_entry {
if individual_user_creator_dao_entry
.deployed_canisters
.insert(governance_canister_id)
.insert(root_canister_id)
{
self.total_number_of_creator_dao_tokens += 1;
}
Expand All @@ -40,7 +40,7 @@ impl CreatorDaoTokenStats {
individual_user_profile_id,
IndividualUserCreatorDaoEntry {
individual_profile_id: individual_user_profile_id,
deployed_canisters: vec![governance_canister_id].into_iter().collect(),
deployed_canisters: vec![root_canister_id].into_iter().collect(),
},
);

Expand Down

0 comments on commit 4086287

Please sign in to comment.