code-423n4 / 2021-11-overlay-findings

1 stars 0 forks source link

Require statements messages too long #96

Closed code423n4 closed 2 years ago

code423n4 commented 3 years ago

Handle

pants

Vulnerability details

Vulnerability details

These functions contain require statement with messages longer than 32 bytes, meaning they cant get into bytes32 which will save gas:

Impact

When transactions revert, the require will be forced to use bytes instead of bytes32 and will waste more gas.

Tool Used

Manual code review.

Recommended Mitigation Steps

Reduce the message by a few letters to fit it into 32 chars.

mikeyrf commented 2 years ago

duplicate #65