Skip to content
Discussion options

You must be logged in to vote

Hello @dariocodes
Contract (class) name should start with upper case so the correct syntax is:

SimpleStorage simpleStorage = new SimpleStorage();

also on your contract you must use the simple storage contract:

contract StorageFactory is SimpleStorage {}

Finally I see you have this:

import "./simplestorage.sol";

As I said the contract names should be uppercase, so be sure to change it to: SimpleStorage

And the contract declaration should be like this:

contract SimpleStorage {}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cromewar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants