MiloTruck Profile picture
I stare at code. LSR @Spearbit, @cantinaxyz
Jun 15, 2023 12 tweets 5 min read
Wanted to share a vulnerability I've seen recently in multiple audit contests.

This could be your next high/medium severity finding on @code4rena or @sherlockdefi!

The vulnerability - using the "delete" keyword on @OpenZeppelin's EnumerableSet or EnumerableMap: Image According to the following warning, an EnumerableSet cannot be cleared by simply using the "delete" keyword. Instead, this would corrupt its data:

github.com/OpenZeppelin/o… Image