Skip to content

Commit

Permalink
fix: Remove deprecated assert
Browse files Browse the repository at this point in the history
  • Loading branch information
dsarlis committed Sep 15, 2024
1 parent 3318f74 commit 5d1beac
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions rs/execution_environment/src/execution/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,6 @@ impl ResponseHelper {
round.counters.charging_from_balance_error,
);

if let Some(state_changes) = &canister_state_changes {
let requested = state_changes.system_state_changes.removed_cycles();
// A cleanup callback cannot accept and send cycles.
assert_eq!(requested.get(), 0);
}

apply_canister_state_changes(
canister_state_changes,
self.canister.execution_state.as_mut().unwrap(),
Expand Down

0 comments on commit 5d1beac

Please sign in to comment.