totalSupply()
not implemented at all, will cause compiler error.
Since totalSupply()
not implemented in PuppyRaffle contract or the relevant ERC721Enumerable
extension contract not imported, the solidity compiler will errorrr.
Contract won't compile.
And IF the contract magically compiles, the index of the NFT will be zero always.
VSC.
Either implement the totalSupply()
in the PuppyRaffle contract and import the IERC721Enumerable
interface, or import and inherit the ERC721Enumerable
contract to use totalSupply()
in the PuppyRaffle contract.
import {IERC721Enumerable} from "./IERC721Enumerable.sol";
OR
import {ERC721Enumerable} from "./ERC721Enumerable.sol";
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.