Skip to content

Commit

Permalink
Remove redundant TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkozh committed Sep 13, 2023
1 parent cd76fbf commit bdec550
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions soroban-env-host/src/host/mem_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ impl Host {
let obj_end = obj_pos
.checked_add(len)
.ok_or_else(|| self.err_arith_overflow())? as usize;
// TODO: we currently grow the destination vec if it's not big enough,
// make sure this is desirable behaviour.
if obj_new.len() < obj_end {
self.charge_budget(
ContractCostType::HostMemAlloc,
Expand Down

0 comments on commit bdec550

Please sign in to comment.