diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-07-06 05:02:58 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-07-07 04:23:05 +0800 |
commit | a2024da955ca63d3084a75927f4f1999e16bc849 (patch) | |
tree | 3e74ec9364cecff457333f9ead5b4cedf402ef80 /packages/contracts/src/2.0.0/protocol/Exchange/libs | |
parent | 0ea3b10efd121012b528b4368290f5b598c74b5d (diff) | |
download | dexon-0x-contracts-a2024da955ca63d3084a75927f4f1999e16bc849.tar.gz dexon-0x-contracts-a2024da955ca63d3084a75927f4f1999e16bc849.tar.zst dexon-0x-contracts-a2024da955ca63d3084a75927f4f1999e16bc849.zip |
Remove AbiV2 where unused
Diffstat (limited to 'packages/contracts/src/2.0.0/protocol/Exchange/libs')
-rw-r--r-- | packages/contracts/src/2.0.0/protocol/Exchange/libs/LibOrder.sol | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibOrder.sol b/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibOrder.sol index 2ea864a5a..68f2c8aed 100644 --- a/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibOrder.sol +++ b/packages/contracts/src/2.0.0/protocol/Exchange/libs/LibOrder.sol @@ -101,21 +101,23 @@ contract LibOrder is bytes32 schemaHash = EIP712_ORDER_SCHEMA_HASH; bytes32 makerAssetDataHash = keccak256(order.makerAssetData); bytes32 takerAssetDataHash = keccak256(order.takerAssetData); + // Assembly for more efficiently computing: - // keccak256(abi.encode( - // order.makerAddress, - // order.takerAddress, - // order.feeRecipientAddress, - // order.senderAddress, - // order.makerAssetAmount, - // order.takerAssetAmount, - // order.makerFee, - // order.takerFee, - // order.expirationTimeSeconds, - // order.salt, - // keccak256(order.makerAssetData), - // keccak256(order.takerAssetData) - // )); + // keccak256(abi.encode( + // order.makerAddress, + // order.takerAddress, + // order.feeRecipientAddress, + // order.senderAddress, + // order.makerAssetAmount, + // order.takerAssetAmount, + // order.makerFee, + // order.takerFee, + // order.expirationTimeSeconds, + // order.salt, + // keccak256(order.makerAssetData), + // keccak256(order.takerAssetData) + // )); + assembly { // Backup // solhint-disable-next-line space-after-comma |