···185185 initial_wrapped,
186186 ).call()
187187188188- if wrapped_did == "did::":
188188+ if wrapped_did == "":
189189 click.echo("status: deactivated")
190190 return
191191
+4-1
src/CowRegistry.sol
···9898 /// @dev Returns the initial values if the cow has never been registered on-chain.
9999 /// @param _controller The initial controller address from the did:cow identifier.
100100 /// @param _wrappedDID The initial wrapped DID from the did:cow identifier, without "did:".
101101- /// @return wrappedDID The current full wrapped DID (with "did:" prepended), or "did::" if deactivated.
101101+ /// @return wrappedDID The current full wrapped DID (with "did:" prepended), or empty string if deactivated.
102102 /// @return controller The current controller address.
103103 function resolveCow(address _controller, string memory _wrappedDID) external view returns (string memory wrappedDID, address controller) {
104104 bytes32 cowHash = calculateCowHash(_controller, _wrappedDID);
105105 Cow storage cow = cows[cowHash];
106106 if (bytes(cow.wrappedDID).length == 0) {
107107 return (string.concat("did:", _wrappedDID), _controller);
108108+ }
109109+ if (keccak256(bytes(cow.wrappedDID)) == keccak256(bytes(DEACTIVATED))) {
110110+ return ("", address(0));
108111 }
109112 return (string.concat("did:", cow.wrappedDID), cow.controller);
110113 }