Replace some uses of abi.encodePacked with more explicit alternatives (#4296)
Co-authored-by: Francisco <fg@frang.io>
This commit is contained in:
@ -47,7 +47,7 @@ library Strings {
|
||||
* @dev Converts a `int256` to its ASCII `string` decimal representation.
|
||||
*/
|
||||
function toString(int256 value) internal pure returns (string memory) {
|
||||
return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
|
||||
return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user