Lesson 3
#6397
Replies: 2 comments 4 replies
-
According to me, you have to first compile your SimpleStorage.sol file. When you compile it, the "contracts/artifacts/build-info/SimpleStorage.Sol" file is auto generated. Then you can import it in your StorageFactory.sol |
Beta Was this translation helpful? Give feedback.
2 replies
-
firstly bro make sure u are in a same directory as to import simplestorage.sol file if not make the path for importing correct , this most likely resolve ur issue . and if not let us know |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks to the free code camp and the instructor from the chainlink, I enjoyed my first three hours already. But there is an issue I could not have resolved now.
Now on the smart contract composability, we could not import the SimpleStorage.Sol file into the StorageFactory contract.
below is the error message: I have tried different things to the extent of asking chatGPT but not to avail.
"Error: not found contracts/artifacts/build-info/SimpleStorage.Sol"
This is my Code in the StorageFactory contract file.
`//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./SimpleStorage.Sol";
contract StorageFactory {
}`
Without resolving this I can not continue thanks for your quick response.
Beta Was this translation helpful? Give feedback.
All reactions