We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14a7033 commit b79eae4Copy full SHA for b79eae4
02_bank.sol
@@ -13,20 +13,20 @@ contract Bank {
13
owner = msg.sender;
14
}
15
16
- function getBalance() public returns(uint256) {
+ function getBalance() view public returns(uint256) {
17
return address(this).balance;
18
19
20
- function getOwner() public returns(address) {
+ function getOwner() view public returns(address) {
21
return owner;
22
23
24
function incrementBalance(uint256 amount) payable public {
25
require(msg.value == amount);
26
27
28
- function newOwner(address newOwner) public onlyOwner{
29
- owner = newOwner;
+ function newOwner(address _newOwner) public onlyOwner{
+ owner = _newOwner;
30
31
32
function withdrawBalance() public onlyOwner {
0 commit comments