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:
committed by
GitHub
parent
3e139baa50
commit
8b10cb38d8
@ -1,14 +1,13 @@
|
||||
pragma solidity ^0.6.0;
|
||||
|
||||
/**
|
||||
* @title Strings
|
||||
* @dev String operations.
|
||||
*/
|
||||
library Strings {
|
||||
/**
|
||||
* @dev Converts a `uint256` to its ASCII `string` representation.
|
||||
*/
|
||||
function fromUint256(uint256 value) internal pure returns (string memory) {
|
||||
function toString(uint256 value) internal pure returns (string memory) {
|
||||
// Inspired by OraclizeAPI's implementation - MIT licence
|
||||
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
|
||||
|
||||
|
||||
Reference in New Issue
Block a user