It looks like you're new here. If you want to get involved, click one of these buttons!
contract Destroy{
bool iamdead = false;
function kill(){
//selfdestruct(msg.sender);
//suicide(msg.sender);
iamdead = true;
}
}
contract Sample{
bool error = false;
Destroy killer;
//bool iamdead = false;
function Sample(){
killer = new Destroy();//makes MIX crashing if debugging
}
function testCall(){
if( !
killer.call(
bytes4(sha3("kill()"))
)) error = true;
else error = false;
}
}
Comments
FYI, you can format code blocks between