* Bump required compiler version to 0.5.2. * Fix shadowed variable warning in ERC20Migrator. * Rename Counter to Counters. * Add dummy state variable to SafeERC20Helper. * Update changelog entry. * Fix CountersImpl name. * Improve changelog entry.
18 lines
409 B
Solidity
18 lines
409 B
Solidity
pragma solidity ^0.5.2;
|
|
|
|
import "../math/Math.sol";
|
|
|
|
contract MathMock {
|
|
function max(uint256 a, uint256 b) public pure returns (uint256) {
|
|
return Math.max(a, b);
|
|
}
|
|
|
|
function min(uint256 a, uint256 b) public pure returns (uint256) {
|
|
return Math.min(a, b);
|
|
}
|
|
|
|
function average(uint256 a, uint256 b) public pure returns (uint256) {
|
|
return Math.average(a, b);
|
|
}
|
|
}
|