OperatorHelpers.sol: function decodeDataAndRequire state mutability can be restricted to pure #48
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
GiveMeTestEther
Vulnerability details
Impact
OperatorHelpers.sol: function decodeDataAndRequire state mutability can be restricted to pure
We don't read any storage variables, only use the arguments therefore, it can be restricted to pure.
Proof of Concept
https://github.com/code-423n4/2021-11-nested/blob/5d113967cdf7c9ee29802e1ecb176c656386fe9b/contracts/libraries/OperatorHelpers.sol#L45
Tools Used
Manual Analysis
Recommended Mitigation Steps
set function state mutability to pure
The text was updated successfully, but these errors were encountered: