Skip to content

Commit

Permalink
fix(vm): fix match clause in get_max_gas_per_pubdata_byte (#1292)
Browse files Browse the repository at this point in the history
## What ❔

Fix match clause in `get_max_gas_per_pubdata_byte`.
`crate::vm_latest::constants::MAX_GAS_PER_PUBDATA_BYTE ==
crate::vm_1_4_1::constants::MAX_GAS_PER_PUBDATA_BYTE` so it should have
no effect, but it's still a bug

## Why ❔

<!-- Why are these changes done? What goal do they contribute to? What
are the principles behind them? -->
<!-- Example: PR templates ensure PR reviewers, observers, and future
iterators are in context about the evolution of repos. -->

## Checklist

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

- [ ] 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`.
- [ ] Spellcheck has been run via `zk spellcheck`.
- [ ] Linkcheck has been run via `zk linkcheck`.
  • Loading branch information
perekopskiy committed Feb 29, 2024
1 parent 57c5526 commit eaf5a50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/multivm/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ pub fn get_max_gas_per_pubdata_byte(version: VmVersion) -> u64 {
VmVersion::VmBoojumIntegration => {
crate::vm_boojum_integration::constants::MAX_GAS_PER_PUBDATA_BYTE
}
VmVersion::Vm1_4_1 => crate::vm_latest::constants::MAX_GAS_PER_PUBDATA_BYTE,
VmVersion::Vm1_4_2 => crate::vm_1_4_1::constants::MAX_GAS_PER_PUBDATA_BYTE,
VmVersion::Vm1_4_1 => crate::vm_1_4_1::constants::MAX_GAS_PER_PUBDATA_BYTE,
VmVersion::Vm1_4_2 => crate::vm_latest::constants::MAX_GAS_PER_PUBDATA_BYTE,
}
}

Expand Down

0 comments on commit eaf5a50

Please sign in to comment.