diff options
author | Leonid <logvinov.leon@gmail.com> | 2018-01-03 18:39:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 18:39:08 +0800 |
commit | d5e0da0eb64ab25cb8e03a61040702cf8e02391a (patch) | |
tree | a7fde03873f3c1b8689d3991edbb362f8022e5f0 /packages/contracts/deploy/src/deployer.ts | |
parent | f684cc371104b594358fb8cd274e453c81f48881 (diff) | |
parent | e744e4cd989bd3ae1070c59f7baa8097f18b8b06 (diff) | |
download | dexon-sol-tools-d5e0da0eb64ab25cb8e03a61040702cf8e02391a.tar dexon-sol-tools-d5e0da0eb64ab25cb8e03a61040702cf8e02391a.tar.gz dexon-sol-tools-d5e0da0eb64ab25cb8e03a61040702cf8e02391a.tar.bz2 dexon-sol-tools-d5e0da0eb64ab25cb8e03a61040702cf8e02391a.tar.lz dexon-sol-tools-d5e0da0eb64ab25cb8e03a61040702cf8e02391a.tar.xz dexon-sol-tools-d5e0da0eb64ab25cb8e03a61040702cf8e02391a.tar.zst dexon-sol-tools-d5e0da0eb64ab25cb8e03a61040702cf8e02391a.zip |
Merge pull request #291 from 0xProject/feature/prettier
Use prettier
Diffstat (limited to 'packages/contracts/deploy/src/deployer.ts')
-rw-r--r-- | packages/contracts/deploy/src/deployer.ts | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/packages/contracts/deploy/src/deployer.ts b/packages/contracts/deploy/src/deployer.ts index ea1de59d3..6f03581e8 100644 --- a/packages/contracts/deploy/src/deployer.ts +++ b/packages/contracts/deploy/src/deployer.ts @@ -1,17 +1,13 @@ -import {TxData} from '@0xproject/types'; -import {Web3Wrapper} from '@0xproject/web3-wrapper'; +import { TxData } from '@0xproject/types'; +import { Web3Wrapper } from '@0xproject/web3-wrapper'; import * as _ from 'lodash'; import * as Web3 from 'web3'; -import {Contract} from './utils/contract'; -import {encoder} from './utils/encoder'; -import {fsWrapper} from './utils/fs_wrapper'; -import { - ContractArtifact, - ContractData, - DeployerOptions, -} from './utils/types'; -import {utils} from './utils/utils'; +import { Contract } from './utils/contract'; +import { encoder } from './utils/encoder'; +import { fsWrapper } from './utils/fs_wrapper'; +import { ContractArtifact, ContractData, DeployerOptions } from './utils/types'; +import { utils } from './utils/utils'; // Gas added to gas estimate to make sure there is sufficient gas for deployment. const EXTRA_GAS = 200000; @@ -99,8 +95,11 @@ export class Deployer { * @param contractAddress Contract address to save to artifact. * @param args Contract constructor arguments that will be encoded and saved to artifact. */ - private async _saveContractDataToArtifactAsync(contractName: string, - contractAddress: string, args: any[]): Promise<void> { + private async _saveContractDataToArtifactAsync( + contractName: string, + contractAddress: string, + args: any[], + ): Promise<void> { const contractArtifact: ContractArtifact = this._loadContractArtifactIfExists(contractName); const contractData: ContractData = this._getContractDataFromArtifactIfExists(contractArtifact); const abi = contractData.abi; |