mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-09 21:46:12 +00:00
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);
|
|
}
|
|
}
|