Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: Gbolahan <89295500+GbolahanAnon@users.noreply.github.com> Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
32 lines
888 B
Solidity
32 lines
888 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "../utils/Strings.sol";
|
|
|
|
contract StringsMock {
|
|
function toString(uint256 value) public pure returns (string memory) {
|
|
return Strings.toString(value);
|
|
}
|
|
|
|
function toString(int256 value) public pure returns (string memory) {
|
|
return Strings.toString(value);
|
|
}
|
|
|
|
function toHexString(uint256 value) public pure returns (string memory) {
|
|
return Strings.toHexString(value);
|
|
}
|
|
|
|
function toHexString(uint256 value, uint256 length) public pure returns (string memory) {
|
|
return Strings.toHexString(value, length);
|
|
}
|
|
|
|
function toHexString(address addr) public pure returns (string memory) {
|
|
return Strings.toHexString(addr);
|
|
}
|
|
|
|
function equal(string memory a, string memory b) public pure returns (bool) {
|
|
return Strings.equal(a, b);
|
|
}
|
|
}
|