diff options
author | Jacob Evans <jacob@dekz.net> | 2018-10-10 08:31:27 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-10-10 08:31:27 +0800 |
commit | 402089db4e1776c826119ed3555c05f61c198953 (patch) | |
tree | 94f7216f2aa5c3249c6b0fb292778b01b7ca8201 | |
parent | bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312 (diff) | |
download | dexon-0x-contracts-402089db4e1776c826119ed3555c05f61c198953.tar.gz dexon-0x-contracts-402089db4e1776c826119ed3555c05f61c198953.tar.zst dexon-0x-contracts-402089db4e1776c826119ed3555c05f61c198953.zip |
fix: [testnet-faucet] Signing of orders
Signing of orders changed in order-utils but forgot to update testnet faucet
-rw-r--r-- | packages/testnet-faucets/src/ts/handler.ts | 4 |
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, |