I deployed VrfTest contract and imported it. But remix keeps saying below error. Did I do the wrong way to import? VrfTest contract is in the same folder in remix.
DeclarationError: Identifier not found or not unique.
--> contracts/SampleERC721.sol:21:5:
|
21 | VrfTest public vrfContract;
| ^^^^^^^
import "./VrfTest.sol";
contract BullBear is ERC721, ERC721Enumerable, ERC721URIStorage, Ownable, KeeperCompatibleInterface {
VrfTest public vrfContract;
constructor(uint updateInterval, address _priceFeed, VrfTest _addrVrfContract) ERC721("Bull&Bear", "BBTK") {
vrfContract = _addrVrfContract;
}
VrfTest
in theVrfTest.sol
file that you are importing and is theVrfTest.sol
file in the same directory as yourBullBear
contract?VrtTest.sol
file is in the same directory withBullBear
contract but I realized that contract name wasn'tVrfTest
in theVrfTest.sol
. Thank you so much :)