The use of delete to delete on a mapping is not efficient as it only results to the data been stored in the mapping been changed to its default value rather than reveal the true state of the values/data in the block chain.
The logged output above for owner1 is 0x0000000000000000000000000000000000000000
and this does not show the true state of data in the blockchain which is also presented and logged above as oneShot.balanceOf(user)
.
Low
Manual Review
Since solidity does not currently have a built-inway to delete a mapping, its possible to use the Deletable Mapping Index which requires that a the value/data which is intended to be deleted in a struct is moved to the end and popped off.
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.