mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Simplify some code
This commit is contained in:
parent
8fa2a15ed1
commit
55700b2157
@ -12,7 +12,7 @@ export async function generate(args: ReadonlyArray<string>): Promise<void> {
|
||||
const codecName = codecFromString(args[0]);
|
||||
const chainId = args[1] as ChainId;
|
||||
|
||||
const mnemonic = Bip39.encode(await Random.getBytes(16)).toString();
|
||||
const mnemonic = Bip39.encode(Random.getBytes(16)).toString();
|
||||
console.info(`FAUCET_MNEMONIC="${mnemonic}"`);
|
||||
|
||||
const profile = new UserProfile();
|
||||
|
@ -4,7 +4,6 @@ export function main(args: ReadonlyArray<string>): void {
|
||||
if (args.length < 1) {
|
||||
help();
|
||||
process.exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
const action = args[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user