From c9ce848f47dfb029c9cda0c3aec9a6a744a7436f Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Tue, 21 Sep 2021 23:27:24 +0530 Subject: [PATCH] Fix case of password env variable (#12120) --- .metamaskrc.dist | 1 + README.md | 2 ++ app/scripts/metamask-controller.js | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.metamaskrc.dist b/.metamaskrc.dist index fd47930c9..60aecdf18 100644 --- a/.metamaskrc.dist +++ b/.metamaskrc.dist @@ -1,3 +1,4 @@ ; Extra environment variables +PASSWORD=METAMASK PASSWORD INFURA_PROJECT_ID=00000000000 SEGMENT_WRITE_KEY= diff --git a/README.md b/README.md index adbdc25b1..395a2562b 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ To start the [React DevTools](https://github.com/facebook/react-devtools) and [R - Redux DevTools will need to be installed as a browser extension. Open the Redux Remote Devtools to access Redux state logs. This can be done by either right clicking within the web browser to bring up the context menu, expanding the Redux DevTools panel and clicking Open Remote DevTools OR clicking the Redux DevTools extension icon and clicking Open Remote DevTools. - You will also need to check the "Use custom (local) server" checkbox in the Remote DevTools Settings, using the default server configuration (host `localhost`, port `8000`, secure connection checkbox unchecked) +[Test site](https://metamask.github.io/test-dapp/) can be used to execute different user flows. + ### Running Unit Tests and Linting Run unit tests and the linter with `yarn test`. diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 7e045668c..ae05d10d8 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -623,7 +623,7 @@ export default class MetamaskController extends EventEmitter { }); this.memStore.subscribe(this.sendUpdate.bind(this)); - const password = process.env.CONF?.password; + const password = process.env.CONF?.PASSWORD; if ( password && !this.isUnlocked() &&