Skip to content

Remove contract alias length limit#2028

Merged
elizabethengelman merged 2 commits into
stellar:mainfrom
theahaco:fix/rm-alias-length-limit
May 16, 2025
Merged

Remove contract alias length limit#2028
elizabethengelman merged 2 commits into
stellar:mainfrom
theahaco:fix/rm-alias-length-limit

Conversation

@chadoh

@chadoh chadoh commented May 13, 2025

Copy link
Copy Markdown
Contributor

What

Remove 30-char length limit on aliases.

Why

Does this serve a purpose? Will there be actual problems caused by people (or tooling) creating humongously long aliases?

I ran into this limit while incorporating OpenZeppelin's fungible-token-interface-example into https://github.com/AhaLabs/scaffold-stellar-frontend. The alias is not for human use; it's for tooling. It is generated automatically.

But even if people want to create ridiculously long aliases, why should the CLI limit them?

Known limitations

None???

@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX May 13, 2025
Comment thread cmd/soroban-cli/src/commands/contract/deploy/utils.rs Outdated
@leighmcculloch

Copy link
Copy Markdown
Member

Looks like a test needs updating.

@chadoh chadoh force-pushed the fix/rm-alias-length-limit branch from c8cde24 to fadd2ca Compare May 14, 2025 18:18
@fnando fnando changed the title fix: rm arbitrary alias length limit Remove contract alias length limit May 15, 2025
chadoh and others added 2 commits May 16, 2025 12:42
Does this serve a purpose? Will there be actual problems caused by
people (or tooling) creating humongously long aliases?

I ran into this limit while incorporating [OpenZeppelin's
`fungible-token-interface-example`](https://github.com/OpenZeppelin/stellar-contracts/blob/main/examples/fungible-token-interface/Cargo.toml)
into https://github.com/AhaLabs/scaffold-stellar-frontend. The alias is
not for human use; it's for tooling. It is generated automatically.

But even if people want to create ridiculously long aliases, why should
the CLI limit them?

Co-authored-by: George <Shaptic@users.noreply.github.com>
@chadoh chadoh force-pushed the fix/rm-alias-length-limit branch from ac31439 to 0945b62 Compare May 16, 2025 16:42
@elizabethengelman elizabethengelman merged commit 2ef1154 into stellar:main May 16, 2025
34 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog (Not Ready) to Done in DevX May 16, 2025
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.

4 participants