Skip to content
New issue

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

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

Already on GitHub? # to your account

start leaderboard contract #27

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft

start leaderboard contract #27

wants to merge 21 commits into from

Conversation

morazzela
Copy link

No description provided.

function createTeam(uint competitionIndex, string calldata name, bytes32 referralCode) external registrationIsOpen(competitionIndex) isNotMember(competitionIndex) {
Competition storage competition = competitions[competitionIndex];

require(referralStorage.codeOwners(referralCode) != address(0), "Referral code does not exist.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xdev10 you've said we can skip the referral code, do you mean referral code will be optional?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants