From 7ad20991e6864f9e38025757b5d82eec2b65a9bf Mon Sep 17 00:00:00 2001 From: arthurgousset <46296830+arthurgousset@users.noreply.github.com> Date: Thu, 25 Apr 2024 12:24:59 +0100 Subject: [PATCH] style(cli): fix typos --- packages/cli/src/commands/account/get-metadata.ts | 4 ++-- packages/cli/src/commands/account/register-metadata.ts | 4 ++-- packages/cli/src/commands/exchange/stable.ts | 2 +- packages/cli/src/commands/network/contracts.ts | 2 +- packages/cli/src/commands/releasecelo/refund-and-finalize.ts | 2 +- packages/cli/src/commands/transfer/stable.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/cli/src/commands/account/get-metadata.ts b/packages/cli/src/commands/account/get-metadata.ts index 2fbcf1627..f7a7f4715 100644 --- a/packages/cli/src/commands/account/get-metadata.ts +++ b/packages/cli/src/commands/account/get-metadata.ts @@ -7,7 +7,7 @@ import { displayMetadata } from '../../utils/identity' export default class GetMetadata extends BaseCommand { static description = - 'Show information about an address. Retreives the metadata URL for an account from the on-chain, then fetches the metadata file off-chain and verifies proofs as able.' + 'Show information about an address. Retrieves the metadata URL for an account from the on-chain, then fetches the metadata file off-chain and verifies proofs as able.' static flags = { ...BaseCommand.flags, @@ -39,7 +39,7 @@ export default class GetMetadata extends BaseCommand { ) console.info('Metadata contains the following claims: \n') await displayMetadata(metadata, kit, flags) - } catch (error: any) { + } catch (error) { console.error(`Metadata could not be retrieved from ${metadataURL}: ${error.toString()}`) } } diff --git a/packages/cli/src/commands/account/register-metadata.ts b/packages/cli/src/commands/account/register-metadata.ts index 913622649..e884b52c6 100644 --- a/packages/cli/src/commands/account/register-metadata.ts +++ b/packages/cli/src/commands/account/register-metadata.ts @@ -9,13 +9,13 @@ import { displayMetadata } from '../../utils/identity' export default class RegisterMetadata extends BaseCommand { static description = - 'Register metadata URL for an account where users will be able to retieve the metadata file and verify your claims' + 'Register metadata URL for an account where users will be able to retrieve the metadata file and verify your claims' static flags = { ...BaseCommand.flags, from: CustomFlags.address({ required: true, - description: 'Addess of the account to set metadata for', + description: 'Address of the account to set metadata for', }), url: Flags.url({ required: true, diff --git a/packages/cli/src/commands/exchange/stable.ts b/packages/cli/src/commands/exchange/stable.ts index d2f631e2d..dfebf5d5d 100644 --- a/packages/cli/src/commands/exchange/stable.ts +++ b/packages/cli/src/commands/exchange/stable.ts @@ -11,7 +11,7 @@ export default class ExchangeStable extends ExchangeStableBase { ...ExchangeStableBase.flags, stableToken: Flags.option({ options: Object.keys(stableTokenOptions) as (StableToken | Lowercase)[], - description: 'Name of the stable token to be transfered', + description: 'Name of the stable token to be transferred', })(), } diff --git a/packages/cli/src/commands/network/contracts.ts b/packages/cli/src/commands/network/contracts.ts index bfabc436e..02bc9208d 100644 --- a/packages/cli/src/commands/network/contracts.ts +++ b/packages/cli/src/commands/network/contracts.ts @@ -17,7 +17,7 @@ const UNVERSIONED_CONTRACTS = [ const UNPROXIED_CONTRACTS: CeloContract[] = [] export default class Contracts extends BaseCommand { - static description = 'Lists Celo core contracts and their addesses.' + static description = 'Lists Celo core contracts and their addresses.' static flags = { ...BaseCommand.flags, diff --git a/packages/cli/src/commands/releasecelo/refund-and-finalize.ts b/packages/cli/src/commands/releasecelo/refund-and-finalize.ts index b3322caa2..594acb69e 100644 --- a/packages/cli/src/commands/releasecelo/refund-and-finalize.ts +++ b/packages/cli/src/commands/releasecelo/refund-and-finalize.ts @@ -4,7 +4,7 @@ import { ReleaseGoldBaseCommand } from '../../utils/release-gold-base' export default class RefundAndFinalize extends ReleaseGoldBaseCommand { static description = - "Refund the given contract's balance to the appopriate parties and destroy the contact. Can only be called by the release owner of revocable ReleaseGold instances." + "Refund the given contract's balance to the appropriate parties and destroy the contact. Can only be called by the release owner of revocable ReleaseGold instances." static flags = { ...ReleaseGoldBaseCommand.flags, diff --git a/packages/cli/src/commands/transfer/stable.ts b/packages/cli/src/commands/transfer/stable.ts index e16f20b9b..1f6fc18bf 100644 --- a/packages/cli/src/commands/transfer/stable.ts +++ b/packages/cli/src/commands/transfer/stable.ts @@ -11,7 +11,7 @@ export default class TransferStable extends TransferStableBase { ...TransferStableBase.flags, stableToken: Flags.option({ options: Object.keys(stableTokenOptions) as (StableToken | Lowercase)[], - description: 'Name of the stable to be transfered', + description: 'Name of the stable to be transferred', })(), }