Skip to content

Conversation

@viviveevee
Copy link
Contributor

@viviveevee viviveevee commented Nov 18, 2025

Allow specifying new canister settings on canister creation

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

fn build_wasm(name: &str) -> Vec<u8> {
if name == "cycles-ledger" {
if false {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's happening here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I need this for local testing and just committed it for the second time 🤦‍♀️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also for some reason that is not considered dead code and clippy dosen't complain about it 😞

let cycles = msg_cycles_available128();
if cycles < 100_000_000_000 {
let cycles = msg_cycles_available();
if cycles < CANISTER_CREATION_FEE {
Copy link
Contributor

Choose a reason for hiding this comment

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

The fee used to be 100_000_000_000. It is now changed to CANISTER_CREATION_FEE = 500_000_000_000. Is this change on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I assumed that value was updated when canister creation fees were updated, but apparently not. I'll revert that

Copy link
Contributor

@lwshang lwshang left a comment

Choose a reason for hiding this comment

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

LGTM.
The only question was in fake-cmc which is for testing. The logic there was not crucial.

@viviveevee viviveevee merged commit 9431bd0 into main Nov 21, 2025
5 checks passed
@viviveevee viviveevee deleted the SDK-2418-support-new-canister-options-in-cycles-ledger branch November 21, 2025 09:12
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.

3 participants