Last Man Standing

First Flight #45
Beginner FriendlyFoundrySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

[L-4] - Use named imports.

Root + Impact

[L-4] - Use named imports.

Description

Use named imports as they offer a number of advantages compared to importing the entire namespace.

Risk

Likelihood: Low

Impact: Low

Proof of Concept

The Game contract imports the Ownable contract as follows:

import "@openzeppelin/contracts/access/Ownable.sol";

Recommended Mitigation

Replace your imports as follows:

- import "@openzeppelin/contracts/access/Ownable.sol";
+ import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
Updates

Appeal created

inallhonesty Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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