Mist Wallet won't allow contract be executed

gxugxu Member Posts: 18
I wrote a simple solidity contract to test on Mist ( Ethereum Wallet 0.87) using PRIVATE-NET ( networkid=5). When I write to the contract each time,it displays this red message "The contract won't allow this transaction to be executed" in Execute Contract window. Sure it didn't, I know that by checking the balances, but I see the transaction is confirmed in the LATEST TRANSACTIONS list. Any idea why?

Comments

  • gxugxu Member Posts: 18
    Here is my contract code:
    pragma solidity ^0.4.2;

    contract SendBack{
    event LogThis(address arg);
    address public owner;
    function SendBack(){
    owner = msg.sender;
    }
    function Half(){
    LogThis(msg.sender);
    if(! msg.sender.send(msg.value/2))
    throw;
    }
    function Double(){
    LogThis(msg.sender);
    if(!msg.sender.send(msg.value*2))
    throw;
    }
    }
Sign In or Register to comment.