aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/utils
diff options
context:
space:
mode:
authorJacob Evans <jacob@dekz.net>2018-06-19 11:30:13 +0800
committerJacob Evans <jacob@dekz.net>2018-06-19 15:32:17 +0800
commit560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7 (patch)
treedb144ad73789e2e8196a377507e9f38690c64d2f /packages/contracts/src/utils
parent190eafc30e2e444ed15b76217a6162ec04b33f73 (diff)
downloaddexon-sol-tools-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.tar
dexon-sol-tools-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.tar.gz
dexon-sol-tools-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.tar.bz2
dexon-sol-tools-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.tar.lz
dexon-sol-tools-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.tar.xz
dexon-sol-tools-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.tar.zst
dexon-sol-tools-560a55bfd1a05bda0d4fb4b97d76e9ea0d9301a7.zip
Optimize and remove redundant encodePacked
Diffstat (limited to 'packages/contracts/src/utils')
-rw-r--r--packages/contracts/src/utils/transaction_factory.ts3
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 = {