mirror of
https://github.com/embarklabs/embark-mythx.git
synced 2025-01-22 00:18:48 +00:00
Merge pull request #7 from emizzle/fix/readme
fix: README and env variable warning update
This commit is contained in:
commit
5c2056a438
@ -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);
|
||||||
|
2
mythx.js
2
mythx.js
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user