After the users join the event successfully, they should have the same privileges as producers during the event period, such as creating and selling MartenitsaToken
. However, they currently lack these privileges
The joinEvent
function in the MartenitsaEvent
contract sets the participant's status as a producer within its own context but does not update the isProducer
mapping in the MartenitsaToken
contract. This discrepancy leads to a failed authorization when a new participant attempts to create Martenitsa token and list Martenitsa token for sale.
Test with foundry, using BaseTest.t.sol
contract's setUp and modifiers that are already set
Participants who join the event expecting to create MartenitsaTokens
and list MartenitsaToken
for sale are unable to do so, which could lead to a loss of trust in the platform and potential disruption of the event.
Foundry
Implement a function in the MartenitsaToken
contract that allows the MartenitsaEvent
contract to update the isProducer
mapping.
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.