We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://forum.ethereum.org/discussion/3238/string-compare-in-solidity
The text was updated successfully, but these errors were encountered:
AjoyBhatia's post
Sorry, something went wrong.
function registerByAdmin(address _user, string _ipfsAddr) public onlyAdmins whenNotPaused { require(isOnAdmin == true); require(indexOfIpfs[_ipfsAddr] == 0 && keccak256(abi.encodePacked(ipfsAddrOf[0])) != keccak256(abi.encodePacked(_ipfsAddr))); uint256 _tokenId = allTokens.length; require(!exists(_tokenId)); _mint(_user, _tokenId); ipfsAddrOf[_tokenId] = _ipfsAddr; indexOfIpfs[_ipfsAddr] = _tokenId; }
ipfsAddrOf[0] is a storage, ipfsAddr is memory. and code above is ok
No branches or pull requests
https://forum.ethereum.org/discussion/3238/string-compare-in-solidity
The text was updated successfully, but these errors were encountered: