Rename EIP712Utils to eip712Utils since objectLiterals shouldn't start with caps
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user