The third lesson, why can't I run it, I'm a little bit confused about the case #2625
Answered
by
alymurtazamemon
3200459199
asked this question in
Q&A
-
Follow the video step by step knock, I do not know why return that line shows an error, because of the case problem? Here is the code, please solve // SPDX-License-Identifier: MIT;
pragma solidity ^0.8.0;
import "./simplestorage.sol";
contract StorageFactory {
SimpleStorage[] public simpleStorageArray;
function createSimplestorageContract() public {
SimpleStorage simpleStorage = new SimpleStorage();
simpleStorageArray.push(simpleStorage);
}
function sfStore(uint256 _simpleStorageIndex,uint256 _simpleStorageNumber) public {
SimpleStorage simpleStorage = simpleStorageArray[_simpleStorageIndex];
simpleStorage.store(_simpleStorageNumber);
}
function sfGet(uint256 _simpleStorageIndex) public view returns(uint256){
SimpleStorage simpleStorage = simpleStorageArray[_simpleStorageIndex];
return simpleStorage.retrieve();
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
alymurtazamemon
Sep 16, 2022
Replies: 1 comment 3 replies
-
@3200459199 Hover over the error and show me that |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
3200459199
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@3200459199 Hover over the error and show me that