aboutsummaryrefslogtreecommitdiffstats
path: root/packages/testnet-faucets/src/ts/handler.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-11 20:25:47 +0800
committerFabio Berger <me@fabioberger.com>2018-10-11 20:25:47 +0800
commit295a8c760a6d5b567a12d6a2d83ae73021ea343c (patch)
treefaf6810a6b5b810869e36c20641fd4fe25e03ddb /packages/testnet-faucets/src/ts/handler.ts
parent9b147f14955c5f6a0b38e03ae30ac13b1be183d1 (diff)
parent1cfcc82ea9869e14c1a1b78e1376c89fdbeb91f4 (diff)
downloaddexon-sol-tools-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar
dexon-sol-tools-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.gz
dexon-sol-tools-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.bz2
dexon-sol-tools-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.lz
dexon-sol-tools-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.xz
dexon-sol-tools-295a8c760a6d5b567a12d6a2d83ae73021ea343c.tar.zst
dexon-sol-tools-295a8c760a6d5b567a12d6a2d83ae73021ea343c.zip
merge dev-section-redesign
Diffstat (limited to 'packages/testnet-faucets/src/ts/handler.ts')
-rw-r--r--packages/testnet-faucets/src/ts/handler.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/testnet-faucets/src/ts/handler.ts b/packages/testnet-faucets/src/ts/handler.ts
index e73eb1744..be42ebde8 100644
--- a/packages/testnet-faucets/src/ts/handler.ts
+++ b/packages/testnet-faucets/src/ts/handler.ts
@@ -9,7 +9,6 @@ import {
RPCSubprovider,
signatureUtils,
SignedOrder,
- SignerType,
Web3ProviderEngine,
} from '0x.js';
import { NonceTrackerSubprovider, PrivateKeyWalletSubprovider } from '@0xproject/subproviders';
@@ -180,11 +179,10 @@ export class Handler {
expirationTimeSeconds: new BigNumber(Date.now() + FIVE_DAYS_IN_MS).div(1000).floor(),
};
const orderHash = orderHashUtils.getOrderHashHex(order);
- const signature = await signatureUtils.ecSignOrderHashAsync(
+ const signature = await signatureUtils.ecSignHashAsync(
networkConfig.web3Wrapper.getProvider(),
orderHash,
configs.DISPENSER_ADDRESS,
- SignerType.Default,
);
const signedOrder: SignedOrder = {
...order,