Andre Medeiros 4c127d1192 Events
2018-08-28 11:27:37 -04:00

17 lines
263 B
Solidity

pragma solidity ^0.4.23;
contract Events {
uint public balance;
event Deposit(uint value);
constructor(uint initialValue) public {
balance = initialValue;
}
function deposit(uint x) public {
balance = balance + x;
emit Deposit(x);
}
}