The function should atomically update both token ownership and owner counts without any intermediate state where they are inconsistent.
The function updates the token owner first, then updates the count tables, creating a window where ownership and counts are inconsistent.
Likelihood:
This occurs during any token transfer when the function is called, leaving inconsistent state if interrupted between the owner update and count adjustment.
Impact:
This can lead to permanent state corruption where token ownership doesn't match owner counts, breaking balance tracking and statistics.
Please add the following code in 'one_shot_tests.move' and then test it.
Updated the function by first updating count and then ownership. This ensures atomic state consistency by updating owner counts before changing token ownership, eliminating the window for inconsistent state.
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.
The contest is complete and the rewards are being distributed.