Skip to content

Commit

Permalink
Update core/lib/multivm/src/versions/vm_latest/oracles/storage.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislav Bezkorovainyi <[email protected]>
  • Loading branch information
joonazan and StanislavBreadless authored May 8, 2024
1 parent b957131 commit 64a696d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/multivm/src/versions/vm_latest/oracles/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl<S: WriteStorage, H: HistoryMode> VmStorageOracle for StorageOracle<S, H> {
// Note, that the diff may be negative, e.g. in case the new write returns to the original value.
// The end result is that users pay as much pubdata in total as would have been required to set
// the slots to their final values.
// The only case where users overpay is when some transaction ends up with a negative pubdata total.
// The only case where users may overpay is when a previous transaction ends up with a negative pubdata total.
let diff = (current_price as i32) - (previous_price as i32);

self.paid_changes.apply_historic_record(
Expand Down

0 comments on commit 64a696d

Please sign in to comment.