NestedFactory#removeOperator()
Avoid empty items can save gas
#170
Labels
NestedFactory#removeOperator()
Avoid empty items can save gas
#170
Handle
WatchPug
Vulnerability details
The for loop in
rebuildCache()
will cost more gas ifremoveOperator()
wont decreaseoperators.length
.https://github.com/code-423n4/2021-11-nested/blob/f646002b692ca5fa3631acfff87dda897541cf41/contracts/MixinOperatorResolver.sol#L29-L43
https://github.com/code-423n4/2021-11-nested/blob/f646002b692ca5fa3631acfff87dda897541cf41/contracts/NestedFactory.sol#L78-L86
Recommendation
Change to:
The text was updated successfully, but these errors were encountered: