@0x/contracts-exchange: Add comments to LEGACY_WALLET_MAGIC_VALUE constant in TestValidatorWallet.sol.
`@0x/contracts-exchange`: Remove references to `LibExchangeSelectors` in the Exchange.
This commit is contained in:
@@ -20,7 +20,6 @@ pragma experimental ABIEncoderV2;
|
||||
|
||||
import "@0x/contracts-utils/contracts/src/LibBytes.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/LibFillResults.sol";
|
||||
import "@0x/contracts-exchange-libs/contracts/src/LibMath.sol";
|
||||
import "@0x/contracts-exchange-libs/contracts/src/LibOrder.sol";
|
||||
@@ -34,7 +33,6 @@ import "./MixinSignatureValidator.sol";
|
||||
contract MixinExchangeCore is
|
||||
IExchangeCore,
|
||||
IExchangeRichErrors,
|
||||
LibExchangeSelectors,
|
||||
LibMath,
|
||||
LibFillResults,
|
||||
MixinAssetProxyDispatcher,
|
||||
|
||||
@@ -21,7 +21,6 @@ pragma experimental ABIEncoderV2;
|
||||
|
||||
import "@0x/contracts-utils/contracts/src/ReentrancyGuard.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";
|
||||
|
||||
@@ -45,6 +45,8 @@ contract TestValidatorWallet is
|
||||
{
|
||||
using LibBytes for bytes;
|
||||
|
||||
// Magic bytes to be returned by `Wallet` signature type validators.
|
||||
// bytes4(keccak256("isValidWalletSignature(bytes32,address,bytes)"))
|
||||
bytes4 private constant LEGACY_WALLET_MAGIC_VALUE = 0xb0671381;
|
||||
|
||||
/// @dev Revert reason for `Revert` `ValidatorAction`.
|
||||
|
||||
@@ -46,6 +46,7 @@ contract TestWrapperFunctions is
|
||||
// solhint-disable no-empty-blocks
|
||||
constructor ()
|
||||
public
|
||||
// Initialize the exchange with a fixed chainId ("test" in hex).
|
||||
Exchange(0x74657374)
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user