The buyPass()
function uses the parameter name collectionId
to identify pass types, while the related configurePass()
function uses passId
for the same purpose. This naming inconsistency is misleading because the term "collectionId" is used elsewhere in the contract to refer to memorabilia collections (which have IDs starting from 100), while pass purchases deal with pass type IDs (1, 2, 3). The inconsistent naming conventions create confusion about the parameter's purpose and make the codebase harder to maintain and understand.
Rename the parameter in buyPass()
to match the naming convention used in configurePass()
:
This change creates consistency across all pass-related functions and eliminates confusion with memorabilia collection terminology.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.