Created
January 16, 2022 10:15
-
-
Save jennharw/450219cc3e9b98a865f85a45f7b44b6b to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.5+commit.47a71e8f.js&optimize=false&runs=200&gist=
This file contains 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.4.24 <0.5.6; | |
//Hello Klaytn | |
contract Count { | |
//Storage variable count | |
uint256 public count = 0; | |
function getBlockNumber() public view returns(uint256){ | |
return block.number; | |
} // get current node's block number | |
//set value of storage variable count | |
function setCount(uint256 _count) public { | |
count = _count; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment