Last active
January 30, 2022 21:19
-
-
Save aindrajaya/315968ad811f887a9068e8a93378eb4e to your computer and use it in GitHub Desktop.
Medium Mastering Blockchain Part 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
/** | |
* @type import('hardhat/config').HardhatUserConfig | |
*/ | |
module.exports = { | |
//Change the code below | |
solidity: 0.8.10; | |
} |
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
//Code 1 | |
pragma solidity ^0.8.0; |
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
pragma solidity ^0.8.0; | |
//Code 2 | |
contract HelloContract { | |
} |
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
pragma solidity ^0.8.0; | |
//Code 2 | |
contract HelloContract { | |
function hello() public pure returns (string memory){ | |
return "Hello, World from Web 3"; | |
} | |
} |
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
//Code 4 | |
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.0; | |
contract HelloContract{ | |
function hello() public pure returns (string memory){ | |
return "Hello, world from Web 3"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment