TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: low
Invalid

Wrong import of `AuctionBase` in `SpiceAuction` contract

Summary

The AuctionBase contract is not correctly imported in SpiceAuction contract

Vulnerability Details

As we can see on this line:
https://github.com/Cyfrin/2024-07-templegold/blob/57a3e597e9199f9e9e0c26aab2123332eb19cc28/protocol/contracts/templegold/SpiceAuction.sol#L10

import { AuctionBase } from "contracts/templegold//AuctionBase.sol";

AuctionBase cannot be imported and it will result with this mistake:

Source "contracts/templegold//AuctionBase.sol" not found: File not found. Searched the following locations: "".solidity(6275)

Impact

AuctionBase would not be imported and used in SpiceAuction.

Tools Used

Manual Review / VS Code extension.

Recommendations

Do this to correctly import AuctionBase to the SpiceAuction :

- import { AuctionBase } from "contracts/templegold//AuctionBase.sol";
+ import { AuctionBase } from "contracts/templegold/AuctionBase.sol";
Updates

Lead Judging Commences

inallhonesty Lead Judge 11 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.