pragma solidity ^0.6.0;
contract Counter {
// 1,2,3 ..
uint count;
constructor() public{
count = 0;
}
function getCount() public view returns(uint) {
return count;
}
function incrementCount() public {
count = count + 1;
}
}
https://trufflesuite.com/ganache/
https://libero2m.tistory.com/22
'스터디' 카테고리의 다른 글
solidity 2022/10/02 (0) | 2022.10.02 |
---|---|
Smartcontract Openzeppelin 22.09.18 (0) | 2022.09.18 |
solidity 2022.09.04 (0) | 2022.09.04 |
이더 GAS 개념 (0) | 2022.05.13 |
블록체인 공부블록체인 공부하기 : ERC Standards (펌) (0) | 2022.05.13 |