I have a not constant function in my contract, with a boolean return value, when i call this function via web3, i always get 'undefined'
Contract myContract {
function setFinished(bool _newStatus) public ifProducer returns(bool){
done = _newStatus;
witdrawFunds();
return true;
}
var result = myContract.setFinished(true,{from: web3.eth.accounts[0], gas:3000000}, function(err, res){});
neither result nor res get me the return value.