Skip to content

Instantly share code, notes, and snippets.

@MariusVanDerWijden
Created July 8, 2020 09:18
Show Gist options
  • Save MariusVanDerWijden/6f260ece848a1e8bd0e064cef20a0709 to your computer and use it in GitHub Desktop.
Save MariusVanDerWijden/6f260ece848a1e8bd0e064cef20a0709 to your computer and use it in GitHub Desktop.
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