remove infura param, not really needed

This commit is contained in:
Iuri Matias 2019-05-23 15:07:04 -04:00
parent ec76b585b5
commit d7e415fa95
2 changed files with 1 additions and 4 deletions

View File

@ -40,7 +40,6 @@ class Actions {
connect(options, cb) {
const url = options.url;
const infura = options.infura;
console.dir("connecting to: " + url);

View File

@ -7,7 +7,6 @@ program
.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('-c, --chain [chain]', "environment to run, can be mainnet, ropsten, development (default: development)")
.option('-i, --infura [infuraKey]', "infuraKey (default: undefined)")
.parse(process.argv);
let accounts = [];
@ -18,8 +17,7 @@ if (program.accounts) {
const actions = new Actions(program.chain || "development", accounts || []);
actions.connect({
url: (program.url || "ws://localhost:8556"),
infura: program.infura
url: (program.url || "ws://localhost:8556")
}, async () => {
cmd(actions)
});