Skip to content

Commit

Permalink
fix(vm): storage_refunds for vm_refunds_enhancement (#449)
Browse files Browse the repository at this point in the history
## What ❔

Return correct `storage_refunds` in `vm_refunds_enhancement`

## Why ❔

Return correct `storage_refunds` in `vm_refunds_enhancement`

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
perekopskiy authored Nov 8, 2023
1 parent 835dd82 commit 1e1e59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/multivm/src/versions/vm_refunds_enhancement/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ impl<S: WriteStorage, H: HistoryMode> VmInterface<S, H> for Vm<S, H> {
total_log_queries,
cycles_used: self.state.local_state.monotonic_cycle_counter,
deduplicated_events_logs,
storage_refunds: Vec::new(),
storage_refunds: self.state.storage.returned_refunds.inner().clone(),
}
}

Expand Down

0 comments on commit 1e1e59f

Please sign in to comment.