From bee48d1d4304738afd67c829490f2b90b6ce8677 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Mon, 21 Jan 2019 15:52:39 +1100 Subject: Remove partial type for TxData txDefaults --- packages/migrations/src/migration.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'packages/migrations/src') diff --git a/packages/migrations/src/migration.ts b/packages/migrations/src/migration.ts index f33d6337a..7668ec923 100644 --- a/packages/migrations/src/migration.ts +++ b/packages/migrations/src/migration.ts @@ -16,11 +16,8 @@ import { erc20TokenInfo, erc721TokenInfo } from './utils/token_info'; * @param txDefaults Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). * @returns The addresses of the contracts that were deployed. */ -export async function runMigrationsAsync(provider: Provider, txDefaults: Partial): Promise { +export async function runMigrationsAsync(provider: Provider, txDefaults: TxData): Promise { const web3Wrapper = new Web3Wrapper(provider); - if (_.isUndefined(txDefaults.from)) { - throw new Error('from address must be specified'); - } // Proxies const erc20Proxy = await wrappers.ERC20ProxyContract.deployFrom0xArtifactAsync( @@ -206,10 +203,7 @@ let _cachedContractAddresses: ContractAddresses; * @param txDefaults Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). * @returns The addresses of the contracts that were deployed. */ -export async function runMigrationsOnceAsync( - provider: Provider, - txDefaults: Partial, -): Promise { +export async function runMigrationsOnceAsync(provider: Provider, txDefaults: TxData): Promise { if (!_.isUndefined(_cachedContractAddresses)) { return _cachedContractAddresses; } -- cgit v1.2.3