Closed sherlock-admin4 closed 2 weeks ago
Acrobatic Burlap Lizard
Low/Info
Row keccak256(abi.encodePacked(contractName)) at line InteractionControl.sol#62 can be calculated before the for to save gas
keccak256(abi.encodePacked(contractName))
for
No response
store bytes32 cName = keccak256(abi.encodePacked(contractName)) before the beginning of the for
bytes32 cName = keccak256(abi.encodePacked(contractName))
Acrobatic Burlap Lizard
Low/Info
Value in InteractionControl.sol:removeControlledContractName() can be calculated before to save gas
Summary
Row
keccak256(abi.encodePacked(contractName))
at line InteractionControl.sol#62 can be calculated before thefor
to save gasRoot Cause
No response
Internal pre-conditions
No response
External pre-conditions
No response
Attack Path
No response
Impact
No response
PoC
No response
Mitigation
store
bytes32 cName = keccak256(abi.encodePacked(contractName))
before the beginning of thefor