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
// SPDX-License-Identifer: MIT | |
pragma solidity ^0.8.4; | |
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | |
import "./PriceConverter.sol"; | |
error noOwner(); | |
contract FundMe{ |
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
// SPDX-License-Identifier: GPL-3.0 | |
//REF: https://github.com/spo0ds/Journey-to-become-a-Blockchain-Engineer | |
pragma solidity ^0.8.3; | |
import "./SimpleStorage.sol"; | |
contract ExtraStorage is SimpleStorage{ | |
function incrementAge(uint256 _age) public override{ | |
age=_age+1; | |
} | |
} |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.8.3; | |
import "./SimpleStorage.sol"; | |
contract StorageFactory is SimpleStorage{ | |
SimpleStorage [] public SSArray; | |
function createSSContract()public{ | |
SimpleStorage genSS=new SimpleStorage(); | |
SSArray.push(genSS); | |
} |
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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity ^0.8.3; | |
contract SimpleStorage{ | |
uint256 age; | |
struct Humans{ | |
uint256 age; | |
string name; | |
} |
NewerOlder