Added unit tests for SafeMath

This commit is contained in:
Alex Towle
2019-07-26 13:11:29 -07:00
parent 1634c90179
commit 4a4d2e7079
8 changed files with 225 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ export enum SafeMathErrorCodes {
}
export class SafeMathError extends RevertError {
constructor(error?: SafeMathErrorCodes, a?: BigNumber | number | string, b?: BigNumber | number | string) {
constructor(error?: SafeMathErrorCodes, a?: BigNumber, b?: BigNumber) {
super('SafeMathError', 'SafeMathError(uint8 error, uint256 a, uint256 b)', {
error,
a,