Click here to Skip to main content
15,900,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
import "./simplestorage.sol";
contract storagefactory{
simplestorage[] public Simplestoragearray;
function createstor() public{
simplestorage Simplestorage = new simplestorage;


What I have tried:

I have tried a lot regarding this but im not getting why am i getting the error
Richard MacCutchan 22-Sep-22 10:24am    
Does it require a storage type before the variable name (e.g. byte, int etc.)?
Eshu 2022 22-Sep-22 11:18am    
it was in a tutorial so basically i created a file simplestorage and imported it here so now my type is simplestorage in form of array and variable is simplestoragearray. his code was working perfectly not sure why its showing in error in mine
Richard MacCutchan 22-Sep-22 11:39am    
You need to talk to the person who created the tutorial.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900