@0x:contracts-exchange Updated MixinWrapperFunctions to use library RichErrors
This commit is contained in:
committed by
Amir Bandeali
parent
3d95817dbe
commit
5a491b2624
@@ -20,20 +20,20 @@ pragma solidity ^0.5.9;
|
||||
pragma experimental ABIEncoderV2;
|
||||
|
||||
import "@0x/contracts-utils/contracts/src/ReentrancyGuard.sol";
|
||||
import "@0x/contracts-utils/contracts/src/RichErrors.sol";
|
||||
import "@0x/contracts-utils/contracts/src/LibRichErrors.sol";
|
||||
import "@0x/contracts-exchange-libs/contracts/src/LibExchangeSelectors.sol";
|
||||
import "@0x/contracts-exchange-libs/contracts/src/LibMath.sol";
|
||||
import "@0x/contracts-exchange-libs/contracts/src/LibOrder.sol";
|
||||
import "@0x/contracts-exchange-libs/contracts/src/LibFillResults.sol";
|
||||
import "./interfaces/IExchangeCore.sol";
|
||||
import "./interfaces/IExchangeRichErrors.sol";
|
||||
import "./interfaces/IWrapperFunctions.sol";
|
||||
import "./MixinExchangeRichErrors.sol";
|
||||
import "./LibExchangeRichErrors.sol";
|
||||
import "./MixinExchangeCore.sol";
|
||||
|
||||
|
||||
contract MixinWrapperFunctions is
|
||||
IWrapperFunctions,
|
||||
MixinExchangeRichErrors,
|
||||
MixinExchangeCore
|
||||
{
|
||||
/// @dev Fills the input order. Reverts if exact takerAssetFillAmount not filled.
|
||||
@@ -445,7 +445,9 @@ contract MixinWrapperFunctions is
|
||||
signature
|
||||
);
|
||||
if (fillResults.takerAssetFilledAmount != takerAssetFillAmount) {
|
||||
_rrevert(IncompleteFillError(getOrderInfo(order).orderHash));
|
||||
LibRichErrors._rrevert(LibExchangeRichErrors.IncompleteFillError(
|
||||
getOrderInfo(order).orderHash
|
||||
));
|
||||
}
|
||||
return fillResults;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ const expect = chai.expect;
|
||||
const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper);
|
||||
|
||||
// tslint:disable:no-unnecessary-type-assertion
|
||||
describe('Exchange wrappers', () => {
|
||||
describe.only('Exchange wrappers', () => {
|
||||
let chainId: number;
|
||||
let makerAddress: string;
|
||||
let owner: string;
|
||||
|
||||
Reference in New Issue
Block a user