Bid Beasts

First Flight #49
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

[L-1] - Incorrect Inheritance in `BidBeastsNFTMarket` and `BidBeasts`.

Root + Impact

[L-1] - Incorrect Inheritance in BidBeastsNFTMarket and BidBeasts.

Description

The BidBeastsNFTMarket contract and BidBeasts contract inherits the Ownable contract, however the syntax is incorrect.

Risk

Likelihood: Low.

Impact: Low.

Proof of Concept

(Proof Of Code)

This is the actual code for both contracts:

BidBeastsNFTMarket.sol:

contract BidBeastsNFTMarket is Ownable(msg.sender) {

BidBeasts.sol:

contract BidBeasts is ERC721, Ownable(msg.sender) {

Recommended Mitigation

Replace the syntax of each contract in the following way:

BidBeastsNFTMarket.sol:

- contract BidBeastsNFTMarket is Ownable(msg.sender) {
+ contract BidBeastsNFTMarket is Ownable {

BidBeasts.sol:

- contract BidBeasts is ERC721, Ownable(msg.sender) {
+ contract BidBeasts is ERC721, Ownable {
Updates

Lead Judging Commences

cryptoghost Lead Judge 2 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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

Give us feedback!