I'm trying to assign values passed into a constructor to the instance variables but the assignment doesn't seem to be working and all the values are set to null.
contract MarketMaker {
address iplogic;
address ipxaddr;
function MarketMaker(address _iplogic, address _ipx) {
iplogic = _iplogic;
ipxaddr = _ipx;
log(ipxaddr);
log(_ipx);
}
event log(address ipx);
function createNewMarket(string prop, uint256 minBet, bool initUtility) onlyIplogic returns (address, address) {
log(ipxaddr);
log(iplogic);}
The log works for the constructor and outputs the correct address but when I call createNewMarket the log doesn't display any address and in further testing it can be seen that both ipxaddr and iplogic are null.
I'm not sure why this would be happening.
Thanks in advance.