File size: 1,199 Bytes
f998fcd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
{
"language": "Solidity",
"sources": {
"contracts/Greeting.sol": {
"content": "//SPDX-License-Identifier: MIT\npragma solidity ^0.8.9;\n\ncontract Greeter {\n // Events that allows for emitting a message\n event NewGreeting(address sender, string message);\n\n // Variables\n string greeting;\n \n // Main constructor run at deployment\n constructor(string memory _greeting) {\n greeting = _greeting;\n emit NewGreeting(msg.sender, _greeting);\n }\n \n // Get function\n function getGreeting() public view returns (string memory) {\n return greeting;\n }\n \n // Set function\n function setGreeting(string memory _greeting) public {\n greeting = _greeting;\n emit NewGreeting(msg.sender, _greeting);\n }\n} "
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"evmVersion": "london",
"remappings": [],
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}
} |