Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
fix CI failures
Browse files Browse the repository at this point in the history
  • Loading branch information
moodlezoup committed Dec 10, 2019
1 parent 865a2b1 commit 2f9891f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
17 changes: 0 additions & 17 deletions contracts/exchange/test/reference_functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,6 @@ describe('Reference functions', () => {
).to.throw(expectedError.message);
});

it('reverts if `order.makerAssetAmount` is 0', () => {
const order = makeOrder({
makerAssetAmount: constants.ZERO_AMOUNT,
takerAssetAmount: ONE_ETHER,
});
const takerAssetFilledAmount = ONE_ETHER;
const expectedError = new LibMathRevertErrors.DivisionByZeroError();
return expect(() =>
LibReferenceFunctions.calculateFillResults(
order,
takerAssetFilledAmount,
DEFAULT_PROTOCOL_FEE_MULTIPLIER,
DEFAULT_GAS_PRICE,
),
).to.throw(expectedError.message);
});

it('reverts if `order.takerAssetAmount` is 0', () => {
const order = makeOrder({
makerAssetAmount: ONE_ETHER,
Expand Down
2 changes: 1 addition & 1 deletion contracts/staking/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export { StakingRevertErrors, FixedMathRevertErrors } from '@0x/utils';
export { constants } from './constants';
export {
AggregatedStats,
AggregatedStatsByEpoch,
StakeInfo,
StakeStatus,
StoredBalance,
Expand All @@ -57,6 +56,7 @@ export {
GlobalStakeByStatus,
StakingPool,
PoolStats,
Numberish,
} from './types';
export {
ContractArtifact,
Expand Down
2 changes: 2 additions & 0 deletions contracts/staking/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,5 @@ export class AggregatedStats {
export interface AggregatedStatsByEpoch {
[epoch: string]: AggregatedStats;
}

export type Numberish = Numberish;
2 changes: 1 addition & 1 deletion contracts/staking/test/unit_tests/lib_fixed_math_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
toDecimal,
toFixed,
} from '@0x/contracts-test-utils';
import { BigNumber, FixedMathRevertErrors } from '@0x/utils';
import { BigNumber, FixedMathRevertErrors, hexUtils } from '@0x/utils';
import { Decimal } from 'decimal.js';
import * as _ from 'lodash';

Expand Down
2 changes: 1 addition & 1 deletion contracts/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"devDependencies": {
"@0x/sol-compiler": "^4.0.1",
"@0x/tslint-config": "^4.0.0",
"decimal.js": "^10.2.0",
"npm-run-all": "^4.1.2",
"shx": "^0.2.2",
"tslint": "5.11.0",
Expand Down Expand Up @@ -66,6 +65,7 @@
"chai": "^4.0.1",
"chai-as-promised": "^7.1.0",
"chai-bignumber": "^3.0.0",
"decimal.js": "^10.2.0",
"dirty-chai": "^2.0.1",
"ethereum-types": "^3.0.0",
"ethereumjs-util": "^5.1.1",
Expand Down

0 comments on commit 2f9891f

Please sign in to comment.