From 8a6061ddbc1d1b3964e27f0fb4dd5175a3344c28 Mon Sep 17 00:00:00 2001 From: Mathew Cormier Date: Sun, 22 Mar 2020 23:55:44 -0400 Subject: [PATCH 1/2] Use wsProvider in getAllApps call --- packages/cli/src/commands/dao_cmds/apps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/dao_cmds/apps.js b/packages/cli/src/commands/dao_cmds/apps.js index 129eef7ba..34d8717f7 100644 --- a/packages/cli/src/commands/dao_cmds/apps.js +++ b/packages/cli/src/commands/dao_cmds/apps.js @@ -1,6 +1,7 @@ import TaskList from 'listr' import Table from 'cli-table' import { blue, green, white } from 'chalk' +import Web3 from 'web3' import { getDaoAddress, getInstalledApps, @@ -115,7 +116,7 @@ export const handler = async function({ task: async (ctx, task) => { appsWithoutPermissions = ( await getAllApps(daoAddress, { - web3, + web3: new Web3(wsProvider || web3.currentProvider) }) ).filter( ({ proxyAddress }) => From 82b5a2288aaf63a865da9823ab4fec3e3f8362f9 Mon Sep 17 00:00:00 2001 From: Mathew Cormier Date: Mon, 23 Mar 2020 00:10:11 -0400 Subject: [PATCH 2/2] Fix lint --- packages/cli/src/commands/dao_cmds/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/commands/dao_cmds/apps.js b/packages/cli/src/commands/dao_cmds/apps.js index 34d8717f7..f93b27d0d 100644 --- a/packages/cli/src/commands/dao_cmds/apps.js +++ b/packages/cli/src/commands/dao_cmds/apps.js @@ -116,7 +116,7 @@ export const handler = async function({ task: async (ctx, task) => { appsWithoutPermissions = ( await getAllApps(daoAddress, { - web3: new Web3(wsProvider || web3.currentProvider) + web3: new Web3(wsProvider || web3.currentProvider), }) ).filter( ({ proxyAddress }) =>