Bid Beasts

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

Incorrect Token Name and Symbol in ERC721 Constructor

Incorrect Token Name and Symbol in ERC721 Constructor

Description

The ERC721 constructor in BidBeasts_NFT_ERC721.sol should set the token name and symbol to accurately reflect the branding and purpose of the NFT collection. In the current implementation, the constructor uses "Goddie_NFT" as the name and "GDNFT" as the symbol, which does not match the contract name (BidBeasts) or the intended project branding.

@> constructor() ERC721("Goddie_NFT", "GDNFT") {}

Risk

Likelihood:

  • Every deployment of this contract will use the incorrect name and symbol.

  • Users and marketplaces will see misleading information for this NFT collection.

Impact:

  • The NFT collection may be misidentified or confused with other projects.

  • Branding and discoverability are negatively affected, reducing trust and recognition.

Proof of Concept

insert the following test function into the test contract BidBeastsMarketPlaceTest.t.sol

function test_wrong_name() public {
// Deploying the contract results in tokens named "Goddie_NFT" with symbol "GDNFT"
console.log(nft.name()); // Returns "Goddie_NFT"
console.log(nft.symbol()); // Returns "GDNFT"
}

Recommended Mitigation

  • Update the constructor to use the correct name and symbol for the project:

Updates

Lead Judging Commences

cryptoghost Lead Judge 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.

Give us feedback!