So, I have the following contracts:
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;
}
}
Contract Sample generates contract Destroy, and then invoke a call upon it.
The creation works fine but if I try to debug it, MIX crashes. Anyone tried something similar?
0 ·
Comments
FYI, you can format code blocks between