I have this simple contract which has a payable method.
contract Betting is usingOraclize {
function Betting() {
//...
}
function sendEther() payable returns (uint) {
return msg.value;
}
The expected behavior is to accept ether and store it in the contract address. Everything works fine including the transaction except that the balance doesn't show up. It remains zero. Here is the etherscan details of the contract.
The last 2 transactions were made using the sendEther
method invoked used web3.js. Still the balance of the contract is zero.