You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
G-2: Internal functions called only once can be inlined
Instead of separating the logic into a separate function, consider inlining the logic into the calling function. This can reduce the number of function calls and improve readability.
Users need to clone the repository, make changes, and then upload it to their private repository.
In their report, they should include the link to their private repository.
After that, they will need to invite sponsors to their private repository.
The winner will be chosen based on the average gas savings in tests.
There are some rules to consider: if any test fails due to changes, the submission is invalid. Additionally, if a user employs assembly, the submission is also invalid.
Please read competition scope for more details.
Github username: @mhhacker111
Twitter username: --
Submission hash (on-chain): 0xc8426654211fff769d7707a938281d8eef7ed5e7288a06e707ada043b393313c
Severity: gas saving
Description:
G-1: Empty Block
Consider removing empty blocks.
1 Found Instances
Found in src/PalmeraGuard.sol Line: 42
function checkTransaction(
G-2: Internal functions called only once can be inlined
Instead of separating the logic into a separate function, consider inlining the logic into the calling function. This can reduce the number of function calls and improve readability.
4 Found Instances
Found in src/Helpers.sol Line: 151
function processAndSortSignatures(
Found in src/Helpers.sol Line: 205
Found in src/PalmeraRoles.sol Line: 37
Found in src/ReentrancyAttack.sol Line: 114
function setParamsForAttack(
G-3: Unused Custom Error
it is recommended that the definition be removed when custom error is unused
6 Found Instances
Found in src/libraries/Errors.sol Line: 16
Found in src/libraries/Errors.sol Line: 22
error NotAuthorizedRemoveSafeFromOtherTree();
Found in src/libraries/Errors.sol Line: 24
error NotAuthorizedRemoveSafeFromOtherOrg();
Found in src/libraries/Errors.sol Line: 34
Found in src/libraries/Errors.sol Line: 60
error CreateSafeProxyFailed();
Found in src/libraries/Errors.sol Line: 62
error InvalidThreshold();
The text was updated successfully, but these errors were encountered: