Last active
January 22, 2021 12:55
-
-
Save ChihChengLiang/93a07f8425b6b4db17d3178db7fb25a6 to your computer and use it in GitHub Desktop.
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
{"compiler":{"version":"0.5.15+commit.6a57276f"},"language":"Solidity","output":{"abi":[{"constant":true,"inputs":[],"name":"getValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"setValue","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"devdoc":{"methods":{}},"userdoc":{"methods":{}}},"settings":{"compilationTarget":{"browser/SimpleStorage.sol":"SimpleStorage"},"evmVersion":"istanbul","libraries":{},"optimizer":{"enabled":true,"runs":200},"remappings":[]},"sources":{"browser/SimpleStorage.sol":{"keccak256":"0x8bad23348f0270d2001f3a8b42b45464d6bba7beaaacc12cfb9cc6c087d7f7a5","urls":["bzz-raw://9a4bc7bca166c7189646d3ad3bbf1b27ca8c72b21922af74c5e3f81422dc33df","dweb:/ipfs/QmSCNAvn5RMxTWHUC4ymvC484TBHVhn47g1qwyjtokhnzK"]}},"version":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
pragma solidity ^0.5.15; | |
contract SimpleStorage { | |
uint256 value = 0; | |
function setValue(uint256 _value) external { | |
value = _value; | |
} | |
function getValue() external view returns (uint256) { | |
return value; | |
} | |
} |
Author
ChihChengLiang
commented
Jan 22, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment