diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 19:42:14 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 19:42:14 +0800 |
commit | 49ff4299c6628fcb0de831f4da1dd1a683305fa5 (patch) | |
tree | 806ab8c725d7301266287e32cd494812f9cf7e2b | |
parent | 4d18a4802d43003b5fa49f7f31a3223d863e7217 (diff) | |
download | dexon-0x-contracts-49ff4299c6628fcb0de831f4da1dd1a683305fa5.tar.gz dexon-0x-contracts-49ff4299c6628fcb0de831f4da1dd1a683305fa5.tar.zst dexon-0x-contracts-49ff4299c6628fcb0de831f4da1dd1a683305fa5.zip |
Fix comments
-rw-r--r-- | packages/deployer/README.md | 6 | ||||
-rw-r--r-- | packages/deployer/src/deployer.ts | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/packages/deployer/README.md b/packages/deployer/README.md index 8b6f9799c..5f10b762b 100644 --- a/packages/deployer/README.md +++ b/packages/deployer/README.md @@ -39,7 +39,7 @@ Options: ## Migrations -You might want to write a migrations script (similar to `truffle migrate`), that deploys multiple contracts and configures them. Bellow you'll find a simplest example of such a script to help you get started. +You might want to write a migration scripts (similar to `truffle migrate`), that deploys multiple contracts and configures them. Below you'll find a simple example of such a script to help you get started. ``` import { Deployer } from '@0xproject/deployer'; @@ -50,7 +50,7 @@ const deployerOpts = { jsonrpcUrl: 'http://localhost:8545', networkId: 50, defaults: { - gas: '1000000', + gas: 1000000, }, }; @@ -61,7 +61,7 @@ const deployer = new Deployer(deployerOpts); })().catch(console.log); ``` -More sophisticated example can be found [here](https://github.com/0xProject/0x-monorepo/tree/development/packages/contracts/migrations) +A more sophisticated example can be found [here](https://github.com/0xProject/0x-monorepo/tree/development/packages/contracts/migrations) ## Contributing diff --git a/packages/deployer/src/deployer.ts b/packages/deployer/src/deployer.ts index 7dfb4c9b1..27c346524 100644 --- a/packages/deployer/src/deployer.ts +++ b/packages/deployer/src/deployer.ts @@ -32,9 +32,7 @@ export class Deployer { if (_.isUndefined((opts as ProviderDeployerOptions).web3Provider)) { const jsonrpcUrl = (opts as UrlDeployerOptions).jsonrpcUrl; if (_.isUndefined(jsonrpcUrl)) { - throw new Error( - `Deployer options don't have neither web3Provider nor jsonrpcUrl. Please pass one of them`, - ); + throw new Error(`Deployer options don't contain web3Provider nor jsonrpcUrl. Please pass one of them`); } web3Provider = new Web3.providers.HttpProvider(jsonrpcUrl); } else { |