From 77168f426c4ccbb7c46c018dfae84c6927bed850 Mon Sep 17 00:00:00 2001 From: Nebulis Date: Mon, 26 Oct 2020 14:31:55 +0800 Subject: [PATCH] fix: disable add fund (tmp) --- src/implementations/wallet/create.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/implementations/wallet/create.ts b/src/implementations/wallet/create.ts index 01033256..9e7b4545 100644 --- a/src/implementations/wallet/create.ts +++ b/src/implementations/wallet/create.ts @@ -6,7 +6,6 @@ import { highlight } from "../../utils"; import fs from "fs"; import { CreateWalletCommand } from "../../commands/wallet/wallet.type"; import { progress as defaultProgress } from "../../implementations/utils/progress"; -import fetch from "node-fetch"; export const create = async ({ fund, @@ -25,12 +24,13 @@ export const create = async ({ fs.writeFileSync(outputPath, json); if (fund === "ropsten") { - const response = await fetch(`https://faucet.ropsten.be/donate/${wallet.address}`).then((res) => res.json()); - if (response.message) { - signale.warn(`[ropsten] Adding fund to ${wallet.address} failed: ${response.message}`); - } else { - signale.info(`[ropsten] Added fund to ${wallet.address}`); - } + // const response = await fetch(`https://faucet.ropsten.be/donate/${wallet.address}`).then((res) => res.json()); + // if (response.message) { + // signale.warn(`[ropsten] Adding fund to ${wallet.address} failed: ${response.message}`); + // } else { + // signale.info(`[ropsten] Added fund to ${wallet.address}`); + // } + signale.warn(`[ropsten] https://faucet.ropsten.be is down. Adding fund is disabled.`); } signale.info(`Wallet with public address ${highlight(wallet.address)} successfully created. Find more details:`);