From 202d8200e8b95f499f1061f971e2f448be99c80a Mon Sep 17 00:00:00 2001 From: Szymon Szlachtowicz <38212223+Szymx95@users.noreply.github.com> Date: Mon, 26 Jul 2021 14:45:49 +0200 Subject: [PATCH] Add multicall env variable (#158) --- packages/DApp/src/index.tsx | 2 +- packages/DApp/webpack.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/DApp/src/index.tsx b/packages/DApp/src/index.tsx index f7ff796..69944ed 100644 --- a/packages/DApp/src/index.tsx +++ b/packages/DApp/src/index.tsx @@ -14,7 +14,7 @@ const config = { }, multicallAddresses: { ...DEFAULT_CONFIG.multicallAddresses, - 1337: '0x049e017b504F85d3c07AFE712fC79501aa1DB712', + 1337: process.env.GANACHE_MULTICALL_CONTRACT ?? '0x0000000000000000000000000000000000000000', }, supportedChains: [...DEFAULT_CONFIG.supportedChains, 1337], notifications: { diff --git a/packages/DApp/webpack.config.js b/packages/DApp/webpack.config.js index 19251dd..b798f5a 100644 --- a/packages/DApp/webpack.config.js +++ b/packages/DApp/webpack.config.js @@ -69,6 +69,7 @@ module.exports = (env) => { 'process.env.ENV': JSON.stringify(environment), 'process.env.GANACHE_VOTING_CONTRACT': JSON.stringify(process.env.GANACHE_VOTING_CONTRACT), 'process.env.GANACHE_DIRECTORY_CONTRACT': JSON.stringify(process.env.GANACHE_DIRECTORY_CONTRACT), + 'process.env.GANACHE_MULTICALL_CONTRACT': JSON.stringify(process.env.GANACHE_MULTICALL_CONTRACT), }), new webpack.ProvidePlugin({ process: 'process/browser.js',