Use calldata
keyword instead of memory
keyword in function arguments
#107
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
xYrYuYx
Vulnerability details
Impact
calldata
use less gas thanmemory
in function argumentshttps://github.com/code-423n4/2021-11-nested/blob/main/contracts/FeeSplitter.sol#L124
Tools Used
Manual
Recommended Mitigation Steps
Use
calldata
keyword in function argument instead ofmemory
The text was updated successfully, but these errors were encountered: