From a2a394a04d2587e98741507947da6cc9b3753efd Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 14 Oct 2020 13:19:15 +0200 Subject: [PATCH] cli: Remove hitFaucet helper --- packages/cli/examples/helpers.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/cli/examples/helpers.ts b/packages/cli/examples/helpers.ts index 572d56ed..9187b353 100644 --- a/packages/cli/examples/helpers.ts +++ b/packages/cli/examples/helpers.ts @@ -16,14 +16,6 @@ const defaultOptions: Options = { const defaultFaucetUrl = "https://faucet.demo-10.cosmwasm.com/credit"; -// TODO: hit faucet -// if (config.faucetUrl) { -// const acct = await client.getAccount(); -// if (!acct?.balance?.length) { -// await ky.post(config.faucetUrl, { json: { ticker: "COSM", address } }); -// } -// } - const connect = async ( mnemonic: string, opts: Partial, @@ -56,12 +48,6 @@ const loadOrCreateMnemonic = (filename: string): string => { } }; -const hitFaucet = async (faucetUrl: string, address: string, ticker: string): Promise => { - const r = await axios.post(defaultFaucetUrl, { ticker, address }); - console.log(r.status); - console.log(r.data); -}; - const randomAddress = async (prefix: string): Promise => { const mnemonic = Bip39.encode(Random.getBytes(16)).toString(); return mnemonicToAddress(prefix, mnemonic);