From 85f9335797c1100e469e975bd248f97fa82690bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Fingen?= Date: Mon, 29 Oct 2018 22:37:12 +0100 Subject: [PATCH] Inject web3 to deploy-apm script --- scripts/deploy-apm.js | 2 ++ scripts/deploy-test-ens.js | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/deploy-apm.js b/scripts/deploy-apm.js index 1d6abd3e5..ba47fc99d 100644 --- a/scripts/deploy-apm.js +++ b/scripts/deploy-apm.js @@ -7,6 +7,7 @@ const logDeploy = require('./helpers/deploy-logger') const getAccounts = require('./helpers/get-accounts') const globalArtifacts = this.artifacts // Not injected unless called directly via truffle +const globalWeb3 = this.artifacts // Not injected unless called directly via truffle const ZERO_ADDR = '0x0000000000000000000000000000000000000000' @@ -18,6 +19,7 @@ module.exports = async ( truffleExecCallback, { artifacts = globalArtifacts, + web3 = globalWeb3, ensAddress = defaultENSAddress, owner = defaultOwner, daoFactoryAddress = defaultDaoFactoryAddress, diff --git a/scripts/deploy-test-ens.js b/scripts/deploy-test-ens.js index ced13c8cf..aa81dc091 100644 --- a/scripts/deploy-test-ens.js +++ b/scripts/deploy-test-ens.js @@ -2,10 +2,19 @@ const logDeploy = require('./helpers/deploy-logger') const getAccounts = require('./helpers/get-accounts') const globalArtifacts = this.artifacts // Not injected unless called directly via truffle +const globalWeb3 = this.artifacts // Not injected unless called directly via truffle const defaultOwner = process.env.OWNER -module.exports = async (truffleExecCallback, { artifacts = globalArtifacts, owner = defaultOwner, verbose = true } = {}) => { +module.exports = async ( + truffleExecCallback, + { + artifacts = globalArtifacts, + web3 = globalWeb3, + owner = defaultOwner, + verbose = true + } = {} +) => { const log = (...args) => { if (verbose) { console.log(...args) } }