Skip to content

Instantly share code, notes, and snippets.

@aindrajaya
Last active January 30, 2022 21:19
Show Gist options
  • Save aindrajaya/315968ad811f887a9068e8a93378eb4e to your computer and use it in GitHub Desktop.
Save aindrajaya/315968ad811f887a9068e8a93378eb4e to your computer and use it in GitHub Desktop.
Medium Mastering Blockchain Part 1
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
//Change the code below
solidity: 0.8.10;
}
//Code 1
pragma solidity ^0.8.0;
pragma solidity ^0.8.0;
//Code 2
contract HelloContract {
}
pragma solidity ^0.8.0;
//Code 2
contract HelloContract {
function hello() public pure returns (string memory){
return "Hello, World from Web 3";
}
}
//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