You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
598 B
27 lines
598 B
pragma solidity ^0.5.0;
|
|
|
|
import "../utils/SafeCast.sol";
|
|
|
|
contract SafeCastMock {
|
|
using SafeCast for uint;
|
|
|
|
function toUint128(uint a) public pure returns (uint128) {
|
|
return a.toUint128();
|
|
}
|
|
|
|
function toUint64(uint a) public pure returns (uint64) {
|
|
return a.toUint64();
|
|
}
|
|
|
|
function toUint32(uint a) public pure returns (uint32) {
|
|
return a.toUint32();
|
|
}
|
|
|
|
function toUint16(uint a) public pure returns (uint16) {
|
|
return a.toUint16();
|
|
}
|
|
|
|
function toUint8(uint a) public pure returns (uint8) {
|
|
return a.toUint8();
|
|
}
|
|
}
|
|
|