Skip to content

Commit

Permalink
[13/n][enums/Sui] Bump execution version and lang edition for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tzakian committed May 21, 2024
1 parent 12761b3 commit 4ab3c77
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use tracing::{info, warn};

/// The minimum and maximum protocol versions supported by this build.
const MIN_PROTOCOL_VERSION: u64 = 1;
const MAX_PROTOCOL_VERSION: u64 = 46;
const MAX_PROTOCOL_VERSION: u64 = 47;

// Record history of protocol version allocations here:
//
Expand Down Expand Up @@ -129,6 +129,7 @@ const MAX_PROTOCOL_VERSION: u64 = 46;
// Enable Leader Scoring & Schedule Change for Mysticeti consensus.
// Version 46: Enable native bridge in testnet
// Enable resharing at the same initial shared version.
// Version 47: Enable Move enums on devnet.

#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub struct ProtocolVersion(u64);
Expand Down Expand Up @@ -2215,6 +2216,11 @@ impl ProtocolConfig {
// Enable resharing at same initial version
cfg.feature_flags.reshare_at_same_initial_version = true;
}
47 => {
if chain != Chain::Testnet && chain != Chain::Mainnet {
cfg.move_binary_format_version = Some(7);
}
}
// Use this template when making changes:
//
// // modify an existing constant.
Expand Down

0 comments on commit 4ab3c77

Please sign in to comment.