diff options
author | Jacob Evans <jacob@dekz.net> | 2018-06-19 11:30:13 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-06-19 15:32:17 +0800 |
commit | 560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7 (patch) | |
tree | db144ad73789e2e8196a377507e9f38690c64d2f /packages/contracts/src/utils | |
parent | 190eafc30e2e444ed15b76217a6162ec04b33f73 (diff) | |
download | dexon-0x-contracts-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.tar.gz dexon-0x-contracts-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.tar.zst dexon-0x-contracts-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.zip |
Optimize and remove redundant encodePacked
Diffstat (limited to 'packages/contracts/src/utils')
-rw-r--r-- | packages/contracts/src/utils/transaction_factory.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/contracts/src/utils/transaction_factory.ts b/packages/contracts/src/utils/transaction_factory.ts index c0a32b83a..19ef4e1bf 100644 --- a/packages/contracts/src/utils/transaction_factory.ts +++ b/packages/contracts/src/utils/transaction_factory.ts @@ -1,4 +1,4 @@ -import { crypto, 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'; @@ -24,7 +24,6 @@ export class TransactionFactory { this._signerBuff = ethUtil.privateToAddress(this._privateKey); } public newSignedTransaction(data: string, signatureType: SignatureType = SignatureType.EthSign): SignedTransaction { - const executeTransactionSchemaHashBuff = EIP712Utils.compileSchema(EIP712_ZEROEX_TRANSACTION_SCHEMA); const salt = generatePseudoRandomSalt(); const signer = `0x${this._signerBuff.toString('hex')}`; const executeTransactionData = { |