Skip to content

Commit 1f279e4

Browse files
authored
Merge pull request #53 from PotLock/fix/registry-is-registered
REGISTRY: check for approved account in `is_registered`
2 parents e88dde6 + 7593772 commit 1f279e4

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

contracts/registry/out/main.wasm

-4.95 KB
Binary file not shown.

contracts/registry/src/projects.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl Contract {
254254
}
255255

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

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

0 commit comments

Comments
 (0)