Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

set url from env variables #307

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

set url from env variables #307

wants to merge 1 commit into from

Conversation

mankenavenkatesh
Copy link

No description provided.

Comment on lines +8 to +15
// set url
if (NETWORK_URL && API_KEY) {
url = `${NETWORK_URL}/${API_KEY}`
} else if (NETWORK_URL) {
url = `${NETWORK_URL}`
} else {
url = `http://localhost:8545`
}
Copy link
Contributor

@atvanguard atvanguard Jul 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// set url
if (NETWORK_URL && API_KEY) {
url = `${NETWORK_URL}/${API_KEY}`
} else if (NETWORK_URL) {
url = `${NETWORK_URL}`
} else {
url = `http://localhost:8545`
}
const url = process.env.NETWORK_URL || 'http://localhost:8545'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep only network url then and remove API_KEY.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants