diff options
author | Jacob Evans <dekz@dekz.net> | 2018-10-09 18:17:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 18:17:11 +0800 |
commit | 024bcf492ddbdceb033466aeadef220adc145332 (patch) | |
tree | 01a364d769f3eede04f4bd1e4a743784d39eea91 /packages/contract-wrappers/test | |
parent | 3ac9dac4f0a6b3875b7ae0ea6dd1855743768ef2 (diff) | |
parent | 75b9e639194e98febf8e378619afef2d578cbc7e (diff) | |
download | dexon-0x-contracts-024bcf492ddbdceb033466aeadef220adc145332.tar.gz dexon-0x-contracts-024bcf492ddbdceb033466aeadef220adc145332.tar.zst dexon-0x-contracts-024bcf492ddbdceb033466aeadef220adc145332.zip |
Merge pull request #1102 from 0xProject/feature/0x.js/eip712-sign-typed-data
[0x.js][order-utils][web3-wrapper] Expose eth_signTypedData functionality for order signing
Diffstat (limited to 'packages/contract-wrappers/test')
-rw-r--r-- | packages/contract-wrappers/test/transaction_encoder_test.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/contract-wrappers/test/transaction_encoder_test.ts b/packages/contract-wrappers/test/transaction_encoder_test.ts index a397e43a8..9da8fe2ca 100644 --- a/packages/contract-wrappers/test/transaction_encoder_test.ts +++ b/packages/contract-wrappers/test/transaction_encoder_test.ts @@ -1,7 +1,7 @@ import { BlockchainLifecycle } from '@0xproject/dev-utils'; import { FillScenarios } from '@0xproject/fill-scenarios'; import { assetDataUtils, generatePseudoRandomSalt, orderHashUtils, signatureUtils } from '@0xproject/order-utils'; -import { SignedOrder, SignerType } from '@0xproject/types'; +import { SignedOrder } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import 'mocha'; @@ -80,12 +80,7 @@ describe('TransactionEncoder', () => { ): Promise<void> => { const salt = generatePseudoRandomSalt(); const encodedTransaction = encoder.getTransactionHex(data, salt, signerAddress); - const signature = await signatureUtils.ecSignOrderHashAsync( - provider, - encodedTransaction, - signerAddress, - SignerType.Default, - ); + const signature = await signatureUtils.ecSignHashAsync(provider, encodedTransaction, signerAddress); txHash = await contractWrappers.exchange.executeTransactionAsync( salt, signerAddress, |