From 24249bcb4d4331d82d3050e805c9f85e3d1be375 Mon Sep 17 00:00:00 2001 From: Amir Bandeali Date: Sun, 26 May 2019 17:19:45 -0700 Subject: [PATCH] Add LibTransactionDecoder to DevUtils --- .../contracts/src/LibTransactionDecoder.sol | 6 ++++-- .../extensions/contracts/src/DevUtils/DevUtils.sol | 11 +++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/contracts/exchange-libs/contracts/src/LibTransactionDecoder.sol b/contracts/exchange-libs/contracts/src/LibTransactionDecoder.sol index f0978b10b8..2ba6ddf062 100644 --- a/contracts/exchange-libs/contracts/src/LibTransactionDecoder.sol +++ b/contracts/exchange-libs/contracts/src/LibTransactionDecoder.sol @@ -17,14 +17,16 @@ */ pragma solidity ^0.5.5; -pragma experimental "ABIEncoderV2"; +pragma experimental ABIEncoderV2; import "@0x/contracts-exchange-libs/contracts/src/LibExchangeSelectors.sol"; import "@0x/contracts-exchange-libs/contracts/src/LibOrder.sol"; import "@0x/contracts-utils/contracts/src/LibBytes.sol"; -contract LibTransactionDecoder is LibExchangeSelectors { +contract LibTransactionDecoder is + LibExchangeSelectors +{ using LibBytes for bytes; /// @dev Decodes the call data for an Exchange contract method call. diff --git a/contracts/extensions/contracts/src/DevUtils/DevUtils.sol b/contracts/extensions/contracts/src/DevUtils/DevUtils.sol index b23fe57e94..b60e217740 100644 --- a/contracts/extensions/contracts/src/DevUtils/DevUtils.sol +++ b/contracts/extensions/contracts/src/DevUtils/DevUtils.sol @@ -20,8 +20,15 @@ pragma solidity ^0.5.5; pragma experimental ABIEncoderV2; import "./OrderValidationUtils.sol"; +import "@0x/contracts-exchange-libs/contracts/src/LibTransactionDecoder.sol"; contract DevUtils is - OrderValidationUtils -{} \ No newline at end of file + OrderValidationUtils, + LibTransactionDecoder +{ + constructor (address _exchange, bytes memory _zrxAssetData) + public + OrderValidationUtils(_exchange, _zrxAssetData) + {} +} \ No newline at end of file