truffle 2=>3
This commit is contained in:
21
test/helpers/SafeMathMock.sol
Normal file
21
test/helpers/SafeMathMock.sol
Normal file
@ -0,0 +1,21 @@
|
||||
pragma solidity ^0.4.4;
|
||||
|
||||
|
||||
import '../../contracts/SafeMath.sol';
|
||||
|
||||
|
||||
contract SafeMathMock is SafeMath {
|
||||
uint public result;
|
||||
|
||||
function multiply(uint a, uint b) {
|
||||
result = safeMul(a, b);
|
||||
}
|
||||
|
||||
function subtract(uint a, uint b) {
|
||||
result = safeSub(a, b);
|
||||
}
|
||||
|
||||
function add(uint a, uint b) {
|
||||
result = safeAdd(a, b);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user