diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2019-02-06 02:03:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-06 02:03:30 +0800 |
commit | b5eb47f60930d040b94177023cd147834f98db1d (patch) | |
tree | 62ea668a6bbb6394b472e5433756e052e447b682 /packages/contract-wrappers/test/transaction_encoder_test.ts | |
parent | 69c7c03fb34b3f21f65c40b73baa21184a296fb2 (diff) | |
parent | af4ed0f39c9eb3e314a6b05de9cedab98e7cb233 (diff) | |
download | dexon-0x-contracts-b5eb47f60930d040b94177023cd147834f98db1d.tar dexon-0x-contracts-b5eb47f60930d040b94177023cd147834f98db1d.tar.gz dexon-0x-contracts-b5eb47f60930d040b94177023cd147834f98db1d.tar.bz2 dexon-0x-contracts-b5eb47f60930d040b94177023cd147834f98db1d.tar.lz dexon-0x-contracts-b5eb47f60930d040b94177023cd147834f98db1d.tar.xz dexon-0x-contracts-b5eb47f60930d040b94177023cd147834f98db1d.tar.zst dexon-0x-contracts-b5eb47f60930d040b94177023cd147834f98db1d.zip |
Merge pull request #1576 from 0xProject/feat/transaction-hash
Add transactionHashUtils to order-utils package
Diffstat (limited to 'packages/contract-wrappers/test/transaction_encoder_test.ts')
-rw-r--r-- | packages/contract-wrappers/test/transaction_encoder_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contract-wrappers/test/transaction_encoder_test.ts b/packages/contract-wrappers/test/transaction_encoder_test.ts index ef9eb2cf3..a996b9f08 100644 --- a/packages/contract-wrappers/test/transaction_encoder_test.ts +++ b/packages/contract-wrappers/test/transaction_encoder_test.ts @@ -83,8 +83,8 @@ describe('TransactionEncoder', () => { signerAddress: string = takerAddress, ): Promise<void> => { const salt = generatePseudoRandomSalt(); - const encodedTransaction = encoder.getTransactionHex(data, salt, signerAddress); - const signature = await signatureUtils.ecSignHashAsync(provider, encodedTransaction, signerAddress); + const transactionHash = encoder.getTransactionHashHex(data, salt, signerAddress); + const signature = await signatureUtils.ecSignHashAsync(provider, transactionHash, signerAddress); txHash = await contractWrappers.exchange.executeTransactionAsync( salt, signerAddress, |