sherlock-audit / 2023-01-uxd-judging

3 stars 1 forks source link

zaevlad - No need to declare default values in variables #397

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

zaevlad

informational

No need to declare default values in variables

Summary

No need to declare default values in variables.

Vulnerability Detail

No need to set uint variable to 0, its default value is 0.

Impact

Addiditonal cost in contract deployment.

Code Snippet

https://github.com/sherlock-audit/2023-01-uxd/blob/main/contracts/external/layer-zero/token/oft/OFTCore.sol#L15

Tool used

Manual Review

Recommendation

Keep it simple and remove "=0".