Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wallet-options #245

Closed
wants to merge 2 commits into from
Closed

wallet-options #245

wants to merge 2 commits into from

Conversation

plondon
Copy link
Contributor

@plondon plondon commented Apr 4, 2018

Trying to remove hardcoded values that we should load from wallet-options. This fetches wallet-options at Public/ from '/Resources/wallet-options.json' then saves the url's for core on global..

@plondon plondon requested a review from sha49 April 4, 2018 23:48
@plondon plondon changed the title First attempt at loading wallet-options externally wallet-options Apr 5, 2018
@@ -4,6 +4,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin')
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin')
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
const walletOptions = require('../Resources/wallet-options.json')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@schnogz we could load the 4 wallet options here for each env then use some logic in the before function inside devServer to determine which walletOptions to return.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah that would work. I can lift some of the code from my environment PR into here to get that working.

@schnogz
Copy link
Contributor

schnogz commented Apr 5, 2018

Want to update the Websocket code to use the new ws endpoint info from wallet options call? It appears left out.

@plondon
Copy link
Contributor Author

plondon commented Apr 5, 2018

Closing in favor of #243.

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

Successfully merging this pull request may close these issues.

None yet

2 participants