aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-11-23 02:30:50 +0800
committerGitHub <noreply@github.com>2016-11-23 02:30:50 +0800
commitca819781cb68fc89af5a299df2710101b4b9cfe3 (patch)
tree4685a5768e0fdd6b3e60a7c636c1aa5c291d9fb0
parentd92741c41984aa9d5268f4aca04ec916a95ef204 (diff)
parent17669e4af8538e4b37bad69ec64fefecb7b1ef4e (diff)
downloadtangerine-wallet-browser-ca819781cb68fc89af5a299df2710101b4b9cfe3.tar
tangerine-wallet-browser-ca819781cb68fc89af5a299df2710101b4b9cfe3.tar.gz
tangerine-wallet-browser-ca819781cb68fc89af5a299df2710101b4b9cfe3.tar.bz2
tangerine-wallet-browser-ca819781cb68fc89af5a299df2710101b4b9cfe3.tar.lz
tangerine-wallet-browser-ca819781cb68fc89af5a299df2710101b4b9cfe3.tar.xz
tangerine-wallet-browser-ca819781cb68fc89af5a299df2710101b4b9cfe3.tar.zst
tangerine-wallet-browser-ca819781cb68fc89af5a299df2710101b4b9cfe3.zip
Merge pull request #866 from MetaMask/new-faucet-dev
Make ropsten faucet button point at the correct url.
-rw-r--r--CHANGELOG.md1
-rw-r--r--app/scripts/metamask-controller.js2
-rw-r--r--ui/app/components/buy-button-subview.js4
3 files changed, 4 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9b8e7e216..d40ab5a74 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
- Add support for the new, default Ropsten Test Network.
- Fix bug that would cause MetaMask to occasionally lose its StreamProvider connection and drop requests.
- Fix bug that would cause the Custom RPC menu item to not appear when Localhost 8545 was selected.
+- Point ropsten faucet button to actual faucet.
## 2.13.8 2016-11-16
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 951918460..168a1cf59 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -341,7 +341,7 @@ module.exports = class MetamaskController {
var network = this.state.network
var url = `https://buy.coinbase.com/?code=9ec56d01-7e81-5017-930c-513daa27bb6a&amount=${amount}&address=${address}&crypto_currency=ETH`
- if (network === '2') {
+ if (network === '3') {
url = 'https://faucet.metamask.io/'
}
diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js
index b564733b1..0dd8c4946 100644
--- a/ui/app/components/buy-button-subview.js
+++ b/ui/app/components/buy-button-subview.js
@@ -114,8 +114,8 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
width: '225px',
},
}, 'In order to access this feature please switch to the Main Network'),
- h('h3.text-transform-uppercase', 'or:'),
- this.props.network === '2' ? h('button.text-transform-uppercase', {
+ this.props.network === '3' ? h('h3.text-transform-uppercase', 'or:') : null,
+ this.props.network === '3' ? h('button.text-transform-uppercase', {
onClick: () => this.props.dispatch(actions.buyEth()),
style: {
marginTop: '15px',