Manual "delegatecall" behaves strangely in MIX

tcimolitcimoli Cagliari - ItalyMember Posts: 35
edited May 2016 in Solidity
I am invoking a method using delegatecall. But when I debug it, I found that the actual method is not at all invoked.
I use the same syntax given for call. Sometimes, an exception "no enough gas" is raised. Others, if changing the called method, no exception is raised, but according with the debugging, the code of the caller is executed. I do not know what is going on.
This is the calling :

function test(){ if( ! sec.delegatecall( bytes4(sha3("getCounter()")) ) ) error = 1; else error = 0; }

sec is a secondContract and getCounter is a simple function which returns an int.
Post edited by tcimoli on
Sign In or Register to comment.