DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: low
Invalid

Unsafe ABI Encoding

Description

It is not uncommon to use abi.encodeWithSelector to generate calldata for a low-level call. However, the first option is not type-safe. As such, these methods is error-prone and ought to be considered unsafe.

within the BaseStrategy contract.

Recommendations

Use abi.encodeCall instead of abi.encodeWithSelector.

Updates

Appeal created

inallhonesty Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.