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

Commit

Permalink
@0x/contracts-exchange: Add comments to LEGACY_WALLET_MAGIC_VALUE
Browse files Browse the repository at this point in the history
… constant in `TestValidatorWallet.sol`.

`@0x/contracts-exchange`: Remove references to `LibExchangeSelectors` in the Exchange.
  • Loading branch information
dorothy-zbornak committed Aug 10, 2019
1 parent e34b390 commit ca33090
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions contracts/exchange/contracts/src/MixinExchangeCore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -34,7 +33,6 @@ import "./MixinSignatureValidator.sol";
contract MixinExchangeCore is
IExchangeCore,
IExchangeRichErrors,
LibExchangeSelectors,
LibMath,
LibFillResults,
MixinAssetProxyDispatcher,
Expand Down
1 change: 0 additions & 1 deletion contracts/exchange/contracts/src/MixinWrapperFunctions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions contracts/exchange/contracts/test/TestValidatorWallet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
1 change: 1 addition & 0 deletions contracts/exchange/contracts/test/TestWrapperFunctions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{}

Expand Down

0 comments on commit ca33090

Please sign in to comment.