I'm experimenting with Solidity Browser
Here is my contract code:
contract Test {
mapping (address => uint256) weismap;
function bet(uint vote) payable returns (uint256 weis) {
if (msg.value==0) throw;
weismap[msg.sender]= msg.value;
return weismap[msg.sender];
}
function test() returns (uint myVote) {
return 1;
}
}
If I set as transaction value 1
,create the contract and call the function bet with 1 as parameter
the function is run successfully.
If after that, I call the test() function I get
VM Exception: invalid JUMP
Any idea, about what's wrong?



