aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 19:42:14 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 19:42:14 +0800
commit49ff4299c6628fcb0de831f4da1dd1a683305fa5 (patch)
tree806ab8c725d7301266287e32cd494812f9cf7e2b /packages
parent4d18a4802d43003b5fa49f7f31a3223d863e7217 (diff)
downloaddexon-sol-tools-49ff4299c6628fcb0de831f4da1dd1a683305fa5.tar
dexon-sol-tools-49ff4299c6628fcb0de831f4da1dd1a683305fa5.tar.gz
dexon-sol-tools-49ff4299c6628fcb0de831f4da1dd1a683305fa5.tar.bz2
dexon-sol-tools-49ff4299c6628fcb0de831f4da1dd1a683305fa5.tar.lz
dexon-sol-tools-49ff4299c6628fcb0de831f4da1dd1a683305fa5.tar.xz
dexon-sol-tools-49ff4299c6628fcb0de831f4da1dd1a683305fa5.tar.zst
dexon-sol-tools-49ff4299c6628fcb0de831f4da1dd1a683305fa5.zip
Fix comments
Diffstat (limited to 'packages')
-rw-r--r--packages/deployer/README.md6
-rw-r--r--packages/deployer/src/deployer.ts4
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 {