remove infura param, not really needed
This commit is contained in:
parent
ec76b585b5
commit
d7e415fa95
|
@ -40,7 +40,6 @@ class Actions {
|
||||||
|
|
||||||
connect(options, cb) {
|
connect(options, cb) {
|
||||||
const url = options.url;
|
const url = options.url;
|
||||||
const infura = options.infura;
|
|
||||||
|
|
||||||
console.dir("connecting to: " + url);
|
console.dir("connecting to: " + url);
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,6 @@ program
|
||||||
.option('-u, --url [url]', "host to connect to (default: ws://localhost:8556)")
|
.option('-u, --url [url]', "host to connect to (default: ws://localhost:8556)")
|
||||||
.option('-a, --accounts [accounts]', "accounts file, if not defined uses accounts in the connecting node")
|
.option('-a, --accounts [accounts]', "accounts file, if not defined uses accounts in the connecting node")
|
||||||
.option('-c, --chain [chain]', "environment to run, can be mainnet, ropsten, development (default: development)")
|
.option('-c, --chain [chain]', "environment to run, can be mainnet, ropsten, development (default: development)")
|
||||||
.option('-i, --infura [infuraKey]', "infuraKey (default: undefined)")
|
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
|
||||||
let accounts = [];
|
let accounts = [];
|
||||||
|
@ -18,8 +17,7 @@ if (program.accounts) {
|
||||||
const actions = new Actions(program.chain || "development", accounts || []);
|
const actions = new Actions(program.chain || "development", accounts || []);
|
||||||
|
|
||||||
actions.connect({
|
actions.connect({
|
||||||
url: (program.url || "ws://localhost:8556"),
|
url: (program.url || "ws://localhost:8556")
|
||||||
infura: program.infura
|
|
||||||
}, async () => {
|
}, async () => {
|
||||||
cmd(actions)
|
cmd(actions)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue