diff options
-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 { |