Skip to content

Show alias name as plain string in overwrite warning#2577

Merged
fnando merged 1 commit intomainfrom
alias-name
May 9, 2026
Merged

Show alias name as plain string in overwrite warning#2577
fnando merged 1 commit intomainfrom
alias-name

Conversation

@fnando
Copy link
Copy Markdown
Member

@fnando fnando commented May 9, 2026

What

When deploying a contract with --alias over an existing alias, the warning message printed the alias using its Debug representation, producing output like AliasName("auth"). This change switches it to the Display representation with single quotes — 'auth' — matching how aliases are formatted elsewhere (e.g. alias add, alias remove).

Why

The AliasName(...) debug form leaked the wrapper type name into user-facing output. The other alias commands already format aliases as '<name>', so this aligns the deploy warning with the rest of the CLI.

Known limitations

N/A

Copilot AI review requested due to automatic review settings May 9, 2026 01:12
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX May 9, 2026
@fnando fnando enabled auto-merge (squash) May 9, 2026 01:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the contract deploy overwrite warning to format the alias using its Display representation (a plain string) rather than Debug, avoiding user-facing output like AliasName("auth") and aligning with other alias-related commands.

Changes:

  • Switch alias formatting in the overwrite warning from {:?} to {} with surrounding single quotes for consistency.

@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX May 9, 2026
@fnando fnando self-assigned this May 9, 2026
@fnando fnando requested review from leighmcculloch and mootz12 May 9, 2026 01:14
@fnando fnando merged commit 5034aab into main May 9, 2026
212 checks passed
@fnando fnando deleted the alias-name branch May 9, 2026 01:21
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in DevX May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants