@0x/contracts-exchange
: Remove _assertValidFill()
.
`@0x/contracts-exchange`: Add `_settleOrder()` unit tests. `@0x/contracts-exchange`: Add explicit tests for `_calculateFillResults()`. `@0x/contracts-exchange`: Add overflow tests to `isolated_fill_order` tests. `@0x/contracts-exchange`: Add explicit `takerAssetFillAmount = 0` test to `isolated_fill_order` tests.
This commit is contained in:
@@ -189,15 +189,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => {
|
||||
await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario);
|
||||
});
|
||||
|
||||
it('should revert if takerAssetFillAmount is 0', async () => {
|
||||
const fillScenario = {
|
||||
...defaultFillScenario,
|
||||
takerAssetFillAmountScenario: TakerAssetFillAmountScenario.Zero,
|
||||
};
|
||||
await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario);
|
||||
});
|
||||
|
||||
it('should revert if an order is expired', async () => {
|
||||
it('should throw if an order is expired', async () => {
|
||||
const fillScenario = {
|
||||
...defaultFillScenario,
|
||||
orderScenario: {
|
||||
|
Reference in New Issue
Block a user