diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-03 23:15:14 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-03 23:15:14 +0800 |
commit | d85ce6ac758a9a726c298b972a7c557e01f2ab2f (patch) | |
tree | 4db9ec59a4809ca1fbe140afd71fd0ff6766e95d /packages/order-utils/src/order_factory.ts | |
parent | 0d3d9dad846d01e84be3b52d48bfabd9e1853b66 (diff) | |
download | dexon-0x-contracts-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.tar.gz dexon-0x-contracts-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.tar.zst dexon-0x-contracts-d85ce6ac758a9a726c298b972a7c557e01f2ab2f.zip |
Make signature_util into an object literal so related functions are rendered together in the docs
Diffstat (limited to 'packages/order-utils/src/order_factory.ts')
-rw-r--r-- | packages/order-utils/src/order_factory.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/order-utils/src/order_factory.ts b/packages/order-utils/src/order_factory.ts index 803cb82b1..14122f353 100644 --- a/packages/order-utils/src/order_factory.ts +++ b/packages/order-utils/src/order_factory.ts @@ -6,7 +6,7 @@ import * as _ from 'lodash'; import { orderHashUtils } from './order_hash'; import { generatePseudoRandomSalt } from './salt'; -import { ecSignOrderHashAsync } from './signature_utils'; +import { signatureUtils } from './signature_utils'; import { MessagePrefixType } from './types'; export const orderFactory = { @@ -49,7 +49,12 @@ export const orderFactory = { prefixType: MessagePrefixType.EthSign, shouldAddPrefixBeforeCallingEthSign: false, }; - const ecSignature = await ecSignOrderHashAsync(provider, orderHash, makerAddress, messagePrefixOpts); + const ecSignature = await signatureUtils.ecSignOrderHashAsync( + provider, + orderHash, + makerAddress, + messagePrefixOpts, + ); const signature = getVRSHexString(ecSignature); const signedOrder: SignedOrder = _.assign(order, { signature }); return signedOrder; |