Skip to content

Commit b79eae4

Browse files
authored
Update 02_bank.sol
Fix compile errors
1 parent 14a7033 commit b79eae4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

02_bank.sol

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ contract Bank {
1313
owner = msg.sender;
1414
}
1515

16-
function getBalance() public returns(uint256) {
16+
function getBalance() view public returns(uint256) {
1717
return address(this).balance;
1818
}
1919

20-
function getOwner() public returns(address) {
20+
function getOwner() view public returns(address) {
2121
return owner;
2222
}
2323

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

28-
function newOwner(address newOwner) public onlyOwner{
29-
owner = newOwner;
28+
function newOwner(address _newOwner) public onlyOwner{
29+
owner = _newOwner;
3030
}
3131

3232
function withdrawBalance() public onlyOwner {

0 commit comments

Comments
 (0)