This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "StorageFactory.sol": { | |
| "./SimpleStorage.sol": "SimpleStorage.sol", | |
| "__sources__": { | |
| "StorageFactory.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.34;\n\nimport { SimpleStorage } from \"./SimpleStorage.sol\" ;\n\ncontract StorageFactory {\n SimpleStorage[] public simpleStoragelist ;\n\n function createSimpleStorageContract() public {\n SimpleStorage newSimpleStorage = new SimpleStorage();\n simpleStoragelist.push(newSimpleStorage);\n }\n\n function sfStorage(uint256 _simpleStorageIndex, uint256 _newSimppleStorageNum) public { \n simpleStoragelist[_simpleStorageIndex].store(_newSimppleStorageNum);\n }\n\n function sfGet(uint _simpleStorageIndex) public view returns(uint256) {\n return simpleStoragelist[_simpleStorageIndex].retrieve();\n }\n\n} ", | |
| "file": "StorageFactory.sol" | |
| }, | |
| "SimpleStorage.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.34; // Starting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "StorageFactory.sol": { | |
| "./SimpleStorage.sol": "SimpleStorage.sol", | |
| "__sources__": { | |
| "StorageFactory.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.34;\n\nimport { SimpleStorage } from \"./SimpleStorage.sol\" ;\n\ncontract StorageFactory {\n SimpleStorage[] public simpleStoragelist ;\n\n function createSimpleStorageContract() public {\n SimpleStorage newSimpleStorage = new SimpleStorage();\n simpleStoragelist.push(newSimpleStorage);\n }\n\n function sfStorage(uint256 _simpleStorageIndex, uint256 _newSimppleStorageNum) public { \n simpleStoragelist[_simpleStorageIndex].store(_newSimppleStorageNum);\n }\n\n function sfGet(uint _simpleStorageIndex) public view returns(uint256) {\n return simpleStoragelist[_simpleStorageIndex].retrieve();\n }\n\n} ", | |
| "file": "StorageFactory.sol" | |
| }, | |
| "SimpleStorage.sol": { | |
| "content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.34; // Starting |