Skip to content

Commit

Permalink
Merge pull request #53 from PotLock/fix/registry-is-registered
Browse files Browse the repository at this point in the history
REGISTRY: check for approved account in `is_registered`
  • Loading branch information
lachlanglen authored Feb 13, 2024
2 parents e88dde6 + 7593772 commit 1f279e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified contracts/registry/out/main.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion contracts/registry/src/projects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl Contract {
}

pub fn is_registered(&self, account_id: ProjectId) -> bool {
self.projects_by_id.get(&account_id).is_some()
self.approved_project_ids.contains(&account_id)
}

pub(crate) fn format_project(&self, project_internal: ProjectInternal) -> ProjectExternal {
Expand Down

0 comments on commit 1f279e4

Please sign in to comment.