If there is a revert inside a for loop that is inside a function, and the revert is triggered, will the whole function revert?
1 Answer
Yes, a revert within a loop inside a function triggers a full function revert due to its stack-based execution model, rolling back all changes made within the function.
-
thanks I would upvote you but don't have 15 reputation points yet Commented Sep 14, 2023 at 23:58