mirror of https://github.com/embarklabs/embark.git
17 lines
263 B
Solidity
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);
|
||
|
}
|
||
|
}
|