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 method to delete event #43

Open
jorgenbuilder opened this issue Apr 20, 2022 · 1 comment
Open

Add method to delete event #43

jorgenbuilder opened this issue Apr 20, 2022 · 1 comment

Comments

@jorgenbuilder
Copy link
Contributor

I want to start deleting test events, so I ran into this need. However, I'm going to use the update command to change the event in question so that it has already ended as a workaround.

@q-uint
Copy link
Collaborator

q-uint commented Apr 20, 2022

This method exists for admins of the launchpad.

bazaar/main.mo

Lines 75 to 79 in 7791ab7

public shared({caller}) func removeEvent(token : Principal, index : Nat) {
isAdmin(caller);
canistergeekMonitor.collectMetrics();
Events.Events.remove(events_, token, index);
};

Do we also expose this to the NFT canister?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants