feat: move mock solidity contracts to mocks/ folder
This commit is contained in:
21
test/mocks/SafeMathMock.sol
Normal file
21
test/mocks/SafeMathMock.sol
Normal file
@ -0,0 +1,21 @@
|
||||
pragma solidity ^0.4.18;
|
||||
|
||||
|
||||
import '../../contracts/math/SafeMath.sol';
|
||||
|
||||
|
||||
contract SafeMathMock {
|
||||
uint256 public result;
|
||||
|
||||
function multiply(uint256 a, uint256 b) public {
|
||||
result = SafeMath.mul(a, b);
|
||||
}
|
||||
|
||||
function subtract(uint256 a, uint256 b) public {
|
||||
result = SafeMath.sub(a, b);
|
||||
}
|
||||
|
||||
function add(uint256 a, uint256 b) public {
|
||||
result = SafeMath.add(a, b);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user