Created
July 8, 2020 09:18
-
-
Save MariusVanDerWijden/6f260ece848a1e8bd0e064cef20a0709 to your computer and use it in GitHub Desktop.
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.6.0; | |
contract CoolContract { | |
uint256 balance; | |
event Deposited(address addr); | |
function Deposit() public payable { | |
balance += msg.value; | |
emit Deposited(msg.sender); | |
} | |
function seeBalance() public view returns (uint256) { | |
return balance; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment