aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
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/contracts
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/contracts')
-rw-r--r--packages/contracts/test/exchange/libs.ts4
-rw-r--r--packages/contracts/test/utils/transaction_factory.ts6
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/contracts/test/exchange/libs.ts b/packages/contracts/test/exchange/libs.ts
index 5c9f9aac7..6c3305d1d 100644
--- a/packages/contracts/test/exchange/libs.ts
+++ b/packages/contracts/test/exchange/libs.ts
@@ -1,5 +1,5 @@
import { BlockchainLifecycle } from '@0xproject/dev-utils';
-import { assetDataUtils, EIP712Utils, orderHashUtils } from '@0xproject/order-utils';
+import { assetDataUtils, eip712Utils, orderHashUtils } from '@0xproject/order-utils';
import { SignedOrder } from '@0xproject/types';
import { BigNumber } from '@0xproject/utils';
import * as chai from 'chai';
@@ -109,7 +109,7 @@ describe('Exchange libs', () => {
describe('getDomainSeparatorSchema', () => {
it('should output the correct domain separator schema hash', async () => {
const domainSeparatorSchema = await libs.getDomainSeparatorSchemaHash.callAsync();
- const domainSchemaBuffer = EIP712Utils._getDomainSeparatorSchemaBuffer();
+ const domainSchemaBuffer = eip712Utils._getDomainSeparatorSchemaBuffer();
const schemaHashHex = `0x${domainSchemaBuffer.toString('hex')}`;
expect(schemaHashHex).to.be.equal(domainSeparatorSchema);
});
diff --git a/packages/contracts/test/utils/transaction_factory.ts b/packages/contracts/test/utils/transaction_factory.ts
index 281c1e30d..8465a6a30 100644
--- a/packages/contracts/test/utils/transaction_factory.ts
+++ b/packages/contracts/test/utils/transaction_factory.ts
@@ -1,4 +1,4 @@
-import { EIP712Schema, EIP712Types, EIP712Utils, generatePseudoRandomSalt } from '@0xproject/order-utils';
+import { EIP712Schema, EIP712Types, eip712Utils, generatePseudoRandomSalt } from '@0xproject/order-utils';
import { SignatureType } from '@0xproject/types';
import * as ethUtil from 'ethereumjs-util';
@@ -31,11 +31,11 @@ export class TransactionFactory {
signerAddress,
data,
};
- const executeTransactionHashBuff = EIP712Utils.structHash(
+ const executeTransactionHashBuff = eip712Utils.structHash(
EIP712_ZEROEX_TRANSACTION_SCHEMA,
executeTransactionData,
);
- const txHash = EIP712Utils.createEIP712Message(executeTransactionHashBuff, this._exchangeAddress);
+ const txHash = eip712Utils.createEIP712Message(executeTransactionHashBuff, this._exchangeAddress);
const signature = signingUtils.signMessage(txHash, this._privateKey, signatureType);
const signedTx = {
exchangeAddress: this._exchangeAddress,