embark/test_apps/coverage_app/contracts/events.sol

17 lines
262 B
Solidity
Raw Normal View History

2018-11-19 10:29:02 +00:00
pragma solidity ^0.5.0;
2018-08-21 20:23:00 +00:00
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);
}
}