cli: Remove hitFaucet helper
This commit is contained in:
parent
27e1fc2c8c
commit
a2a394a04d
@ -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<Options>,
|
||||
@ -56,12 +48,6 @@ const loadOrCreateMnemonic = (filename: string): string => {
|
||||
}
|
||||
};
|
||||
|
||||
const hitFaucet = async (faucetUrl: string, address: string, ticker: string): Promise<void> => {
|
||||
const r = await axios.post(defaultFaucetUrl, { ticker, address });
|
||||
console.log(r.status);
|
||||
console.log(r.data);
|
||||
};
|
||||
|
||||
const randomAddress = async (prefix: string): Promise<string> => {
|
||||
const mnemonic = Bip39.encode(Random.getBytes(16)).toString();
|
||||
return mnemonicToAddress(prefix, mnemonic);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user