Skip to content

Commit

Permalink
feat: enable nv22 support (#1970)
Browse files Browse the repository at this point in the history
We should have done this in v4.1, but I guess we're going straight for
v4.1.1.
  • Loading branch information
Stebalien authored Jan 25, 2024
1 parent c61a45e commit 9179b45
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion fvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,3 @@ arb = ["arbitrary", "quickcheck", "fvm_shared/arb"]
m2-native = []
upgrade-actor = []
gas_calibration = []
nv22-dev = []
1 change: 0 additions & 1 deletion fvm/src/gas/price_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,6 @@ impl PriceList {
pub fn price_list_by_network_version(network_version: NetworkVersion) -> &'static PriceList {
match network_version {
NetworkVersion::V21 => &WATERMELON_PRICES,
#[cfg(feature = "nv22-dev")]
_ if network_version == NetworkVersion::V22 => &WATERMELON_PRICES,
_ => panic!("network version {nv} not supported", nv = network_version),
}
Expand Down
5 changes: 0 additions & 5 deletions fvm/src/machine/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ where
/// * `blockstore`: The underlying [blockstore][`Blockstore`] for reading/writing state.
/// * `externs`: Client-provided ["external"][`Externs`] methods for accessing chain state.
pub fn new(context: &MachineContext, blockstore: B, externs: E) -> anyhow::Result<Self> {
#[cfg(not(feature = "nv22-dev"))]
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
NetworkVersion::V21..=NetworkVersion::V21;

#[cfg(feature = "nv22-dev")]
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
NetworkVersion::V21..=NetworkVersion::V22;

Expand Down

0 comments on commit 9179b45

Please sign in to comment.