Skip to content

Commit

Permalink
Create 02_bank.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
xanpena committed Jan 14, 2022
1 parent b5b9efb commit cc01f1e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 02_bank.sol
@@ -0,0 +1,16 @@
pragma solidity ^0.4.17;

contract Bank {

function Bank() payable public {

}

function incrementBalance(uint256 amount) payable public {
require(msg.value == amount);
}

function getBalance() public {
msg.sender.transfer(address(this).balance);
}
}

0 comments on commit cc01f1e

Please sign in to comment.