Skip to content

feat(CLI)!: Split iota names set-target-address #6878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

DaughterOfMars
Copy link
Contributor

Description of change

Splits the set-target-address command into unset-target-address. The set-target-address will now default to the active address when calling without the optional param.

Links to any relevant issues

Closes https://github.com/iotaledger/iota-names/issues/190

Type of change

Choose a type of change, and delete any options that are not relevant.

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Release Notes

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI: Split the set-target-address command into set-target-address and unset-target-address.
  • Rust SDK:
  • REST API:

@DaughterOfMars DaughterOfMars requested a review from a team as a code owner May 19, 2025 07:01
Copy link

vercel bot commented May 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
apps-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2025 6:13am
apps-ui-kit ✅ Ready (Inspect) Visit Preview May 26, 2025 6:13am
rebased-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2025 6:13am
wallet-dashboard ✅ Ready (Inspect) Visit Preview May 26, 2025 6:13am

@iota-ci iota-ci added dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group. labels May 19, 2025
@DaughterOfMars DaughterOfMars changed the title feat(CLI)!: Split iota names set-target-address feat(CLI)!: Split iota names set-target-address May 19, 2025
Ok(match self {
IotaNamesNftProxy::Domain(_) => {
let names_config = get_iota_names_config(client).await?;
names_config.package_address.into()
Copy link
Member

Choose a reason for hiding this comment

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

the main package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah that's where the controller module is.

Copy link
Member

Choose a reason for hiding this comment

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

But you're not using the controller module anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I am now using it for non-subdomains. For the subdomains it uses the subdomains module

@@ -1356,6 +1415,13 @@ impl IotaNamesNftProxy {
}

fn module_name(&self) -> &'static str {
match self {
IotaNamesNftProxy::Domain(_) => "controller",
Copy link
Member

Choose a reason for hiding this comment

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

Tbh this feels weird, very tailored to solve this PR's issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I know. But how would you rather do it?

Copy link
Member

Choose a reason for hiding this comment

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

I think we need to either:

  • resolve the module name when it's actually needed; or
  • rename this function
    module_name is too broad for this, maybe controller_module_name or something as subdomain_proxy essentially forward to the controller anyway

Copy link
Member

Choose a reason for hiding this comment

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

Also applies to package_id though, I think I need to think a bit more about it, I don't like it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants