soroban_env_host::e2e_invoke

Function extract_rent_changes

Source
pub fn extract_rent_changes(
    ledger_changes: &[LedgerEntryChange],
) -> Vec<LedgerEntryRentChange>
Expand description

Extracts the rent-related changes from the provided ledger changes.

Only meaningful changes are returned (i.e. no-op changes are skipped).

Extracted changes can be used to compute the rent fee via fees::compute_rent_fee.