-
Notifications
You must be signed in to change notification settings - Fork 6
chore: update dependencies to allow new canister settings #168
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
chore: update dependencies to allow new canister settings #168
Conversation
cycles-ledger/tests/tests.rs
Outdated
|
|
||
| fn build_wasm(name: &str) -> Vec<u8> { | ||
| if name == "cycles-ledger" { | ||
| if false { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's happening here?
There was a problem hiding this comment.
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 🤦♀️
There was a problem hiding this comment.
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 😞
fake-cmc/src/main.rs
Outdated
| let cycles = msg_cycles_available128(); | ||
| if cycles < 100_000_000_000 { | ||
| let cycles = msg_cycles_available(); | ||
| if cycles < CANISTER_CREATION_FEE { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
lwshang
left a comment
There was a problem hiding this 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.
Allow specifying new canister settings on canister creation