Can't import my simple storage file onto storage factory file. #4779
-
I've been trying to figure this our for the past hour. I tried to import my simple storage file onto my storage factory file but it says "Error: not found SimpleStorage.sol". I don't know what to do because the file name is SimpleStorage.sol and I put import "./SimpleStorage.sol"; Any ideas?? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
post your code here |
Beta Was this translation helpful? Give feedback.
-
We need to see your code, are both files located in the same folder? |
Beta Was this translation helpful? Give feedback.
-
Maybe you should try renaming the simple storage file and try again. And also when you import use single quotes instead of double quotes, plus your import should be outside of your contract declaration. Hope that helps. I just finished the factory storage section, worked well for me using remix |
Beta Was this translation helpful? Give feedback.
-
@alex81983 Make sure both files are in the same folder and also make sure the contract name. |
Beta Was this translation helpful? Give feedback.
@alex81983 Make sure both files are in the same folder and also make sure the contract name.