Alejandro Betancourt pfp
Alejandro Betancourt

@alebeta06

Solidity gotcha: `delete myArray` empties the array but leaves your index mapping pointing at ghosts. Re-add a deleted item and it sneaks into a phantom slot → out-of-bounds panic. Clear each key first, then nuke the array. The mapping never sees your delete coming.
0 reply
0 recast
2 reactions