Guest User

Untitled

a guest
Jul 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. pragma solidity ^0.4.19;
  2.  
  3. contract BrokerAcct {
  4. function getBalance() public view returns (uint256) {
  5. return address(this).balance;
  6. }
  7.  
  8. function withdraw() public {
  9. msg.sender.transfer(address(this).balance);
  10. }
  11.  
  12. function deposit(uint256 amount) payable public{
  13. require(msg.value == amount);
  14. }
  15. }
Add Comment
Please, Sign In to add comment