aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-11-23 02:46:13 +0800
committerGitHub <noreply@github.com>2016-11-23 02:46:13 +0800
commitb9d73a4b8fd8aa88aa1cf51e8305db9809dd7b9d (patch)
treeade4d57ba311779d37e3dfc36700ba2f4814394f
parent2df6ebbd10b2d3bf03d82043b63b367548574ed9 (diff)
parentcffe0c27f3c66c15622001b5ef0f3c9f35a99a70 (diff)
downloadtangerine-wallet-browser-b9d73a4b8fd8aa88aa1cf51e8305db9809dd7b9d.tar
tangerine-wallet-browser-b9d73a4b8fd8aa88aa1cf51e8305db9809dd7b9d.tar.gz
tangerine-wallet-browser-b9d73a4b8fd8aa88aa1cf51e8305db9809dd7b9d.tar.bz2
tangerine-wallet-browser-b9d73a4b8fd8aa88aa1cf51e8305db9809dd7b9d.tar.lz
tangerine-wallet-browser-b9d73a4b8fd8aa88aa1cf51e8305db9809dd7b9d.tar.xz
tangerine-wallet-browser-b9d73a4b8fd8aa88aa1cf51e8305db9809dd7b9d.tar.zst
tangerine-wallet-browser-b9d73a4b8fd8aa88aa1cf51e8305db9809dd7b9d.zip
Merge pull request #864 from MetaMask/new-faucet
Point to ropsten faucet
-rw-r--r--CHANGELOG.md1
-rw-r--r--app/scripts/metamask-controller.js2
-rw-r--r--ui/app/components/buy-button-subview.js6
3 files changed, 5 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 481130201..eb7c8a942 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,7 @@
# Changelog
## Current Master
+- Ropsten networks now properly point to the faucet when attempting to buy ether.
- Make Ropsten transactions link to etherscan correctly.
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 5e76c5ebd..631411bed 100644
--- a/app/scripts/metamask-controller.js
+++ b/app/scripts/metamask-controller.js
@@ -364,7 +364,7 @@ module.exports = class MetamaskController {
var network = this.idStore._currentState.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..35eda647e 100644
--- a/ui/app/components/buy-button-subview.js
+++ b/ui/app/components/buy-button-subview.js
@@ -113,9 +113,9 @@ BuyButtonSubview.prototype.formVersionSubview = function () {
style: {
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', {
+ }, 'In order to access this feature, please switch to the Main Network'),
+ (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',