Does anyone know why when I deposit 5 in the deposit window and click ‘getBalance’ it says 0: uint256: 0
i’m expecting it to say uint256: 5
pragma solidity ^0.4.19;
contract Contract {
address owner; // current owner of the contract
function deposit(uint amount) public payable {
require(msg.value == amount);
}
function getBalance() public view returns (uint256) {
return address(this).balance;
}
}