Merge pull request #7 from emizzle/fix/readme

fix: README and env variable warning update
This commit is contained in:
semuelle 2020-03-16 13:04:54 +01:00 committed by GitHub
commit 5c2056a438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 29 deletions

View File

@ -16,7 +16,7 @@ MYTHX_USERNAME="<mythx-username>"
MYTHX_PASSWORD="<password>" MYTHX_PASSWORD="<password>"
``` ```
> **NOTE:** `MYTHX_ETH_ADDRESS` in favour of `MYTHX_USERNAME` and will be removed in future versions. Please update your .env file or your environment variables accordingly. > **NOTE:** `MYTHX_ETH_ADDRESS` has been deprecated in favour of `MYTHX_USERNAME` and will be removed in future versions. Please update your .env file or your environment variables accordingly.
`MYTHX_USERNAME` may be either of: `MYTHX_USERNAME` may be either of:
* MythX User ID (assigned by MythX API to any registered user); * MythX User ID (assigned by MythX API to any registered user);

View File

@ -27,7 +27,7 @@ async function analyse(contracts, cfg, embark) {
if (process.env.MYTHX_ETH_ADDRESS) { if (process.env.MYTHX_ETH_ADDRESS) {
process.env.MYTHX_USERNAME = process.env.MYTHX_ETH_ADDRESS; process.env.MYTHX_USERNAME = process.env.MYTHX_ETH_ADDRESS;
embark.logger.warn("The environment variable MYTHX_ETH_ADDRESS in favour of MYTHX_USERNAME and will be removed in future versions. Please update your .env file or your environment variables accordingly."); embark.logger.warn("The environment variable MYTHX_ETH_ADDRESS has been deprecated in favour of MYTHX_USERNAME and will be removed in future versions. Please update your .env file or your environment variables accordingly.");
} }
// Connect to MythX via armlet // Connect to MythX via armlet