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 /packages | |
parent | bd06ebde8d1a5caf138ad3b36f9a5c5f255f2312 (diff) | |
download | dexon-sol-tools-402089db4e1776c826119ed3555c05f61c198953.tar dexon-sol-tools-402089db4e1776c826119ed3555c05f61c198953.tar.gz dexon-sol-tools-402089db4e1776c826119ed3555c05f61c198953.tar.bz2 dexon-sol-tools-402089db4e1776c826119ed3555c05f61c198953.tar.lz dexon-sol-tools-402089db4e1776c826119ed3555c05f61c198953.tar.xz dexon-sol-tools-402089db4e1776c826119ed3555c05f61c198953.tar.zst dexon-sol-tools-402089db4e1776c826119ed3555c05f61c198953.zip |
fix: [testnet-faucet] Signing of orders
Signing of orders changed in order-utils but forgot to update testnet faucet
Diffstat (limited to 'packages')
-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, |