import "./NonceCompareOp.sol";

contract NonceCompareOpSingleton {
	NonceCompareOp nonceCompareOp;
	
	event CreateNonceCompareOp(address indexed nonceCompareOp);

	function getNonceCompareOp() returns (NonceCompareOp) {
		if (address(nonceCompareOp) == 0) {
			nonceCompareOp = new NonceCompareOp();
		}
		CreatedNonceCompareOp(nonceCompareOp);
		return nonceCompareOp;
	}
}


Revert "Added event to ease the ui side of things"
import "./NonceCompareOp.sol";

contract NonceCompareOpSingleton {
	NonceCompareOp nonceCompareOp;

	function getNonceCompareOp() returns (NonceCompareOp) {
		if (address(nonceCompareOp) == 0) {
			nonceCompareOp = new NonceCompareOp();
		}
		return nonceCompareOp;
	}
}