Beginner FriendlyFoundryBridge
100 EXP
View results
Submission Details
Severity: low
Invalid

Check for null address

Summary

Ensure that the contract is not initialized with a null token address.

Vulnerability Details

Null token address initialization check is a common pattern to use to ensure the expected behaviour of the contract.

Impact

Null address can lead to unexpected behaviour.

Tools Used

Manual code analysis.

Recommendations

Add a check to ensure that _token is not a null address.

constructor(IERC20 _token) Ownable(msg.sender) {
+ require(address(_token) != address(0), "Token address cannot be null");
...
Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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