aboutsummaryrefslogtreecommitdiffstats
path: root/packages/order-utils/src/order_hash.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-08-04 16:09:08 +0800
committerFabio Berger <me@fabioberger.com>2018-08-04 16:09:08 +0800
commit7759e67a5a51a213e19083f63df13e80ea4aefa2 (patch)
tree9eedc8e87196c080787f0a6841bdb67199cbcfed /packages/order-utils/src/order_hash.ts
parent4d75689790075f734df9a2e3b80443c85e1ddc95 (diff)
downloaddexon-sol-tools-7759e67a5a51a213e19083f63df13e80ea4aefa2.tar
dexon-sol-tools-7759e67a5a51a213e19083f63df13e80ea4aefa2.tar.gz
dexon-sol-tools-7759e67a5a51a213e19083f63df13e80ea4aefa2.tar.bz2
dexon-sol-tools-7759e67a5a51a213e19083f63df13e80ea4aefa2.tar.lz
dexon-sol-tools-7759e67a5a51a213e19083f63df13e80ea4aefa2.tar.xz
dexon-sol-tools-7759e67a5a51a213e19083f63df13e80ea4aefa2.tar.zst
dexon-sol-tools-7759e67a5a51a213e19083f63df13e80ea4aefa2.zip
Rename EIP712Utils to eip712Utils since objectLiterals shouldn't start with caps
Diffstat (limited to 'packages/order-utils/src/order_hash.ts')
-rw-r--r--packages/order-utils/src/order_hash.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/order-utils/src/order_hash.ts b/packages/order-utils/src/order_hash.ts
index 54c500653..8e98f8767 100644
--- a/packages/order-utils/src/order_hash.ts
+++ b/packages/order-utils/src/order_hash.ts
@@ -3,7 +3,7 @@ import { Order, SignedOrder } from '@0xproject/types';
import * as _ from 'lodash';
import { assert } from './assert';
-import { EIP712Utils } from './eip712_utils';
+import { eip712Utils } from './eip712_utils';
import { EIP712Schema, EIP712Types } from './types';
const INVALID_TAKER_FORMAT = 'instance.takerAddress is not of a type(s) string';
@@ -69,11 +69,11 @@ export const orderHashUtils = {
* @return The resulting orderHash from hashing the supplied order as a Buffer
*/
getOrderHashBuffer(order: SignedOrder | Order): Buffer {
- const orderParamsHashBuff = EIP712Utils.structHash(EIP712_ORDER_SCHEMA, order);
- const orderHashBuff = EIP712Utils.createEIP712Message(orderParamsHashBuff, order.exchangeAddress);
+ const orderParamsHashBuff = eip712Utils.structHash(EIP712_ORDER_SCHEMA, order);
+ const orderHashBuff = eip712Utils.createEIP712Message(orderParamsHashBuff, order.exchangeAddress);
return orderHashBuff;
},
_getOrderSchemaBuffer(): Buffer {
- return EIP712Utils.compileSchema(EIP712_ORDER_SCHEMA);
+ return eip712Utils.compileSchema(EIP712_ORDER_SCHEMA);
},
};