Skip to content
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

feat: specify ic0.canister_liquid_cycle_balance128 #347

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mraszyk
Copy link
Contributor

@mraszyk mraszyk commented Oct 17, 2024

This PR specifies a new system API ic0.canister_liquid_cycle_balance128 returning the current amount of cycles that is available for spending in calls and execution. This way, canisters can bound the amount of cycles attached to a call to prevent spurious traps when calling ic0.call_cycles_add or ic0.call_cycles_add128.

@mraszyk mraszyk requested a review from a team as a code owner October 17, 2024 10:27
Copy link

github-actions bot commented Oct 17, 2024

🤖 Here's your preview: https://o3spr-ryaaa-aaaak-qcnrq-cai.icp0.io/docs

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.

1 participant