Skip to content

Commit

Permalink
Remove do prefix for internal setTokenUri method
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Mar 22, 2018
1 parent 6c09d20 commit 37929c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contracts/mocks/ERC721TokenMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ contract ERC721TokenMock is ERC721Token {
{ }

function mint(address _to, uint256 _tokenId) public {
_mint(_to, _tokenId);
super._mint(_to, _tokenId);
}

function burn(uint256 _tokenId) public {
_burn(ownerOf(_tokenId), _tokenId);
super._burn(ownerOf(_tokenId), _tokenId);
}

function setTokenURI(uint256 _tokenId, string _uri) public {
doSetTokenURI(_tokenId, _uri);
super._setTokenURI(_tokenId, _uri);
}
}
2 changes: 1 addition & 1 deletion contracts/token/ERC721/ERC721Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ contract ERC721Token is ERC721, ERC721BasicToken {
* @param _tokenId uint256 ID of the token to set its URI
* @param _uri string URI to assign
*/
function doSetTokenURI(uint256 _tokenId, string _uri) internal {
function _setTokenURI(uint256 _tokenId, string _uri) internal {
require(exists(_tokenId));
tokenURIs[_tokenId] = _uri;
}
Expand Down

0 comments on commit 37929c8

Please sign in to comment.