Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filterAddress() method to Motoko backend #54

Merged
merged 8 commits into from
Aug 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add access control to 'filterAddress()'
  • Loading branch information
rvanasa committed Aug 25, 2023
commit 26ec094d688d369079b45587bb4ec55dc146384b
1 change: 1 addition & 0 deletions canisters/backend/Core.mo
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ module {
};

public func filterAddress(caller : Principal, address : Types.Address.Address) : async Bool {
assert caller == installer;
let log = logger.Begin(caller, #filterAddress(address));
state.filteredAddresses.put(address);
log.okWith(true);
Expand Down