Prettier fixes

This commit is contained in:
Fabio Berger
2019-02-19 22:48:09 -08:00
parent 13eb9103a7
commit 6b775628d5
10 changed files with 68 additions and 13 deletions

View File

@@ -34,7 +34,13 @@ import {
} from '@0x/order-utils';
import { AssetProxyId, ExchangeContractErrs, OrderState, SignedOrder, Stats } from '@0x/types';
import { errorUtils, intervalUtils, providerUtils } from '@0x/utils';
import { BlockParamLiteral, LogEntryEvent, LogWithDecodedArgs, SupportedProvider, ZeroExProvider } from 'ethereum-types';
import {
BlockParamLiteral,
LogEntryEvent,
LogWithDecodedArgs,
SupportedProvider,
ZeroExProvider,
} from 'ethereum-types';
import * as _ from 'lodash';
import { orderWatcherPartialConfigSchema } from '../schemas/order_watcher_partial_config_schema';

View File

@@ -17,7 +17,12 @@ export const assert = {
signature: string,
signerAddress: string,
): Promise<void> {
const isValid = await signatureUtils.isValidSignatureAsync(supportedProvider, orderHash, signature, signerAddress);
const isValid = await signatureUtils.isValidSignatureAsync(
supportedProvider,
orderHash,
signature,
signerAddress,
);
assert.assert(isValid, `Expected order with hash '${orderHash}' to have a valid signature`);
},
};