diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-07-18 04:38:44 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-07-18 05:37:01 +0800 |
commit | 948f3880a3b1af86c3b587d250d0376bbf547d06 (patch) | |
tree | 1d82810436e7ccbda0e02c3e3953839af3b611a0 /app/scripts/lib | |
parent | 919f3c46015bcf39be7efd13d84cb24c8be5c939 (diff) | |
download | tangerine-wallet-browser-948f3880a3b1af86c3b587d250d0376bbf547d06.tar tangerine-wallet-browser-948f3880a3b1af86c3b587d250d0376bbf547d06.tar.gz tangerine-wallet-browser-948f3880a3b1af86c3b587d250d0376bbf547d06.tar.bz2 tangerine-wallet-browser-948f3880a3b1af86c3b587d250d0376bbf547d06.tar.lz tangerine-wallet-browser-948f3880a3b1af86c3b587d250d0376bbf547d06.tar.xz tangerine-wallet-browser-948f3880a3b1af86c3b587d250d0376bbf547d06.tar.zst tangerine-wallet-browser-948f3880a3b1af86c3b587d250d0376bbf547d06.zip |
turn off auto faucet and remove file
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/auto-faucet.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/scripts/lib/auto-faucet.js b/app/scripts/lib/auto-faucet.js deleted file mode 100644 index 38d54ba5e..000000000 --- a/app/scripts/lib/auto-faucet.js +++ /dev/null @@ -1,20 +0,0 @@ -const uri = 'https://faucet.metamask.io/' -const METAMASK_DEBUG = 'GULP_METAMASK_DEBUG' -const env = process.env.METAMASK_ENV - -module.exports = function (address) { - // Don't faucet in development or test - if (METAMASK_DEBUG === true || env === 'test') return - global.log.info('auto-fauceting:', address) - const data = address - const headers = new Headers() - headers.append('Content-type', 'application/rawdata') - fetch(uri, { - method: 'POST', - headers, - body: data, - }) - .catch((err) => { - console.error(err) - }) -} |