Bid Beasts

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

Incorrect Remapping in Foundry.toml Prevents Contract Compilation

Incorrect Remapping in Foundry.toml Prevents Contract Compilation

Description:

Both BidBeasts_NFT_ERC71 and BidBeastsNFTMarketPlace contracts rely on @openzeppelin/contracts/ for their OpenZeppelin imports. However, the current remapping in Foundry.toml is incorrectly defined as:

//@audit --> Incorrect remapping configuration
remappings = ["openzeppelin-contracts/=lib/openzeppelin-contracts/"]

The incorrect remapping prevents the compiler from resolving OpenZeppelin imports correctly, resulting in compilation errors.

Risk

Likelihood: High

Impact: High

  • Contracts cannot be compiled and cannot be deployed

Recommended Mitigation:

Update the remapping configuration in Foundry.toml as follows:

- remappings = ["openzeppelin-contracts/=lib/openzeppelin-contracts/"]
+ remappings = ["@openzeppelin/=lib/openzeppelin-contracts/"]
Updates

Lead Judging Commences

cryptoghost Lead Judge 21 days ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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