I have geth 1.5.2 and working on testnet with Mist-linux64-0-8-7. When I try to send some ethers (value) to my contract by calling any function, I get stuck. For example, this dummy function does not work with non-zero value but works normally with zero value:
function t() returns (uint){
return 1;
}
I can see a warning in Mist with the message "It seems this transaction will fail. If you submit it, it may consume all the gas you send." This does not depend on the gas amount that I provide. Even if I put 500,000 of gas the transaction seem not to complete.
The message I encounter is -
Warning! Error encountered during contract execution!
I tried to run different functions in different contracts. I was even using sendTransaction functionality to do the same from geth console directly but I still can't make it work. I didn't find if anybody had similar problem. Please help me if you have any idea.