aboutsummaryrefslogtreecommitdiffstats
path: root/packages/migrations
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-11-26 23:57:49 +0800
committerFabio Berger <me@fabioberger.com>2018-11-26 23:57:49 +0800
commitc6592148a725768f652ddfa8f94aa3e2c6f7f213 (patch)
tree1be1e92305054bcc2d8ffbb23156b0f34546737d /packages/migrations
parent6e39f11db144847a916823330c571a572faf12ef (diff)
downloaddexon-sol-tools-c6592148a725768f652ddfa8f94aa3e2c6f7f213.tar.gz
dexon-sol-tools-c6592148a725768f652ddfa8f94aa3e2c6f7f213.tar.zst
dexon-sol-tools-c6592148a725768f652ddfa8f94aa3e2c6f7f213.zip
Rename node-endpoint to rpc-url for clarity
Diffstat (limited to 'packages/migrations')
-rw-r--r--packages/migrations/src/cli.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/migrations/src/cli.ts b/packages/migrations/src/cli.ts
index 94fbb5fe2..2404e7921 100644
--- a/packages/migrations/src/cli.ts
+++ b/packages/migrations/src/cli.ts
@@ -6,8 +6,8 @@ import * as yargs from 'yargs';
import { runMigrationsAsync } from './migration';
const args = yargs
- .option('node-endpoint', {
- describe: 'Endpoint where backing Ethereum node is hosted',
+ .option('rpc-url', {
+ describe: 'Endpoint where backing Ethereum JSON RPC interface is available',
type: 'string',
demandOption: false,
default: 'http://localhost:8545',
@@ -18,12 +18,12 @@ const args = yargs
demandOption: true,
})
.example(
- '$0 --node-endpoint http://localhost:8545 --from 0x5409ed021d9299bf6814279a6a1411a7e866a631',
+ '$0 --rpc-url http://localhost:8545 --from 0x5409ed021d9299bf6814279a6a1411a7e866a631',
'Full usage example',
).argv;
(async () => {
- const rpcSubprovider = new RPCSubprovider(args['node-endpoint']);
+ const rpcSubprovider = new RPCSubprovider(args['rpc-url']);
const provider = new Web3ProviderEngine();
provider.addProvider(rpcSubprovider);
provider.start();