Skip to content

fix: use importedAlias.Name instead of args[0] in alias import#4799

Merged
envestcc merged 2 commits intoiotexproject:masterfrom
envestcc:fix/alias-import-name
Mar 17, 2026
Merged

fix: use importedAlias.Name instead of args[0] in alias import#4799
envestcc merged 2 commits intoiotexproject:masterfrom
envestcc:fix/alias-import-name

Conversation

@envestcc
Copy link
Member

@envestcc envestcc commented Mar 9, 2026

Summary

In ioctl/newcmd/alias/aliasimport.go, SetAlias was called with args[0] (the file path argument) instead of importedAlias.Name, causing all imported aliases to be set to the import file path name instead of their actual alias names.

Fix

Replace args[0] with importedAlias.Name.

SetAlias was called with args[0] (the file path argument) instead of
importedAlias.Name, causing all imported aliases to be set to the
same name (the import file path).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@envestcc envestcc requested a review from a team as a code owner March 9, 2026 09:06
@sonarqubecloud
Copy link

@envestcc envestcc merged commit e8472e3 into iotexproject:master Mar 17, 2026
4 checks passed
@envestcc envestcc deleted the fix/alias-import-name branch March 17, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants