Declaration error using SimpleStorage #1017
-
|
Hello, I have this error when running StorageFactory.sol, any idea what's the problem? from solidity: and the program is the following: // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; import "./SimpleStorage.sol"; contract StorageFactory is SimpleStorage{ } |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
in sfStore you are using the function parameter _simpleStorageNumber and not _simpleStorageIndex in case you are using remix there should be a red marker on the left side of the editor pane at the height of this line. Hover with your mouse over it and you will see the error. |
Beta Was this translation helpful? Give feedback.
in sfStore you are using the function parameter _simpleStorageNumber and not _simpleStorageIndex
in case you are using remix there should be a red marker on the left side of the editor pane at the height of this line. Hover with your mouse over it and you will see the error.