Hi,
When I try to input a variable of type address, and return it - the returned output is always the contracts address (I'm trying this with mix). However if I use an uint8 - it's properly returned as expected.
I've used the following contract to test with - to isolate the issue:
contract ContractTest {
address owner;
function ContractTest() {
owner = msg.sender;
}
function returnMeAddress(address input) returns (address) {
return input;
}
function returnMeInt(uint8 input ) returns (uint8) {
return input;
}
function kill() {
if(msg.sender == owner ) suicide(owner);
}
}
Anyone who knows if this is a bug in mix, or perhaps if not to use address as type (and if so what instead?)
/Ian
Comments
You can also post any issues in github repo: https://github.com/ethereum/cpp-ethereum/issues