The NewHighestBid
event emits the previous highest bid amount instead of the new bid amount.
The event uses self.highest_bid.read()
, which holds the previous highest bid before it is updated.
Inaccurate Event Data: Event logs will display incorrect bid amounts.
Data Integrity Concerns: May affect systems relying on these events for real-time updates or analytics.
Emit Correct Bid Amount: Use the amount
parameter:
The `bid` function emits `NewHighestBid` event with wrong parameter. The `amount` parameter is `self.highest_bid.read()` that is called before the update of the `highest_bid` variable.
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.