diff --git a/.changeset/new-timers-applaud.md b/.changeset/new-timers-applaud.md new file mode 100644 index 000000000..af8820eac --- /dev/null +++ b/.changeset/new-timers-applaud.md @@ -0,0 +1,5 @@ +--- +'@hyperlane-xyz/cli': minor +--- + +Add chain displayName prompt with default diff --git a/typescript/cli/src/config/chain.ts b/typescript/cli/src/config/chain.ts index dbda2eb9f..bcedd179c 100644 --- a/typescript/cli/src/config/chain.ts +++ b/typescript/cli/src/config/chain.ts @@ -61,6 +61,11 @@ export async function createChainConfig({ validate: (chainName) => ZChainName.safeParse(chainName).success, }); + const displayName = await input({ + message: 'Enter chain display name', + default: name[0].toUpperCase() + name.slice(1), + }); + const chainId = parseInt( await detectAndConfirmOrPrompt( async () => { @@ -76,6 +81,7 @@ export async function createChainConfig({ const metadata: ChainMetadata = { name, + displayName, chainId, domainId: chainId, protocol: ProtocolType.Ethereum,