Skip to content

Commit

Permalink
hide upgrade compatibility check behind feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjennings-mysten committed Oct 2, 2024
1 parent 010c91e commit 3b3fcf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/sui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ gas-profiler = [
"sui-types/gas-profiler",
"sui-execution/gas-profiler",
]
# TODO remove once compatibility check is fully finished
# not meant for long term use
compatibility-check-errors = []
2 changes: 2 additions & 0 deletions crates/sui/src/client_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,8 @@ impl SuiClientCommands {
let (package_id, compiled_modules, dependencies, package_digest, upgrade_policy) =
upgrade_result?;

// TODO remove once compatibility check is fully finished
#[cfg(feature = "compatibility-check-errors")]
check_compatibility(&client, package_id, &compiled_modules, protocol_config)
.await?;

Expand Down

0 comments on commit 3b3fcf9

Please sign in to comment.