Skip to content

feat: allow token/cycles commands to target networks#207

Merged
raymondk merged 11 commits intomainfrom
vivee/mint-outside-of-env
Nov 20, 2025
Merged

feat: allow token/cycles commands to target networks#207
raymondk merged 11 commits intomainfrom
vivee/mint-outside-of-env

Conversation

@viviveevee
Copy link
Contributor

@viviveevee viviveevee commented Nov 20, 2025

With this PR it becomes possible to do icp cycles and icp token operations outside of a project, e.g. when targeting --mainnet

@viviveevee viviveevee marked this pull request as ready for review November 20, 2025 15:53
@viviveevee viviveevee requested a review from a team as a code owner November 20, 2025 15:53

let cid = ctx
.get_canister_id(&canister_selection, &environment_selection)
.get_canister_id_for_env(&canister_selection, &environment_selection)
Copy link
Contributor

@raymondk raymondk Nov 20, 2025

Choose a reason for hiding this comment

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

This is not going to work if the canister selection is a principal.
We could:

  • use ctx.get_canister_id and pass the default network.
  • leave it as is for now - the command doesn't do anything super special at the moment - but perhaps add a comment.

This is a weird command: unlike all the other commands which could be used inside or outside the context of project this one doesn't make much sense outside of a project.

@raymondk raymondk merged commit 7abf84a into main Nov 20, 2025
68 of 70 checks passed
@raymondk raymondk deleted the vivee/mint-outside-of-env branch November 20, 2025 21:00
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