You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that this function should fail when the owner, mistakenly, calls it and creates a stage transition that is erroneous.
For example, when in any stage before ConfirmTickets, this function should fail: moving to Claim stage without allowing users to confirm their tickets does not make sense.
Recommendation
The function should check if the stage transition is a valid one before allowing an owner to perform it.
The text was updated successfully, but these errors were encountered:
Description
force_claim_period_start
is an owner_only operated function that allows the owner of the contract to move the stage intoClaim
:review-elrond-launchpad-2021-10/code/launchpad/src/launchpad.rs
Lines 44 to 50 in a32fe0b
The issue is that this function should fail when the owner, mistakenly, calls it and creates a stage transition that is erroneous.
For example, when in any stage before
ConfirmTickets
, this function should fail: moving toClaim
stage without allowing users to confirm their tickets does not make sense.Recommendation
The function should check if the stage transition is a valid one before allowing an owner to perform it.
The text was updated successfully, but these errors were encountered: