Rename Strings.fromUint256 to Strings.toString (#2188)

* rename Strings.fromUint256 to Strings.toString

* add changelog entry

* fix conflict with js toString method
This commit is contained in:
Francisco Giordano
2020-04-15 18:04:00 -03:00
committed by GitHub
parent 3e139baa50
commit 8b10cb38d8
4 changed files with 4 additions and 4 deletions

View File

@ -153,7 +153,7 @@ contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable
return string(abi.encodePacked(_baseURI, _tokenURI));
}
// If there is a baseURI but no tokenURI, concatenate the tokenID to the baseURI.
return string(abi.encodePacked(_baseURI, Strings.fromUint256(tokenId)));
return string(abi.encodePacked(_baseURI, Strings.toString(tokenId)));
}
/**