Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Update spec/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: mraszyk <[email protected]>
  • Loading branch information
dragoljub-duric and mraszyk authored Sep 28, 2023
1 parent 0ccf159 commit d38566b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5690,7 +5690,7 @@ The pseudo-code below does *not* explicitly enforce the restrictions of which im
copy_cycles_to_canister<es>(dst, amount.to_little_endian_bytes())

ic0.burn_cycles<es>(amount_to_burn : i64) : i64 =
if es.context ∉ {U, T, Rt, Ry} then Trap {amount = 0;}
if es.context ∉ {U, T, Rt, Ry} then Trap {cycles_used = es.cycles_used;}
let amount = min(amount_to_burn, es.balance - freezing_limit(
es.params.sysenv.compute_allocation,
es.params.sysenv.memory_allocation,
Expand Down

0 comments on commit d38566b

Please sign in to comment.