Skip to content

Commit

Permalink
minor updates and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjiao committed Oct 15, 2024
1 parent 56c73e9 commit f7ac6d2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions vm/vm-runtime/src/move_vm_ext/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ impl MoveVmExt {

let max_identifier_size = get_max_identifier_size(&features);

let enable_invariant_violation_check_in_swap_loc =
let _enable_invariant_violation_check_in_swap_loc =
!timed_features.is_enabled(TimedFeatureFlag::DisableInvariantViolationCheckInSwapLoc);
let type_size_limit = true;
let _type_size_limit = true;

let verifier_config = verifier_config(&features, &timed_features);

Expand Down Expand Up @@ -111,18 +111,18 @@ impl MoveVmExt {
inner: WarmVmCache::get_warm_vm(
builder,
VMConfig {
verifier_config,
deserializer_config: DeserializerConfig::new(max_binary_format_version, max_identifier_size),
paranoid_type_checks: /*crate::StarcoinVM::get_paranoid_checks() */ false,
max_value_nest_depth: Some(128),
type_max_cost,
type_base_cost,
type_byte_cost,
aggregator_v2_type_tagging,

check_invariant_in_swap_loc: false,
ty_builder: TypeBuilder::Legacy,
},
verifier_config,
deserializer_config: DeserializerConfig::new(max_binary_format_version, max_identifier_size),
paranoid_type_checks: /*crate::StarcoinVM::get_paranoid_checks() */ false,
max_value_nest_depth: Some(128),
type_max_cost,
type_base_cost,
type_byte_cost,
// todo: support aggregator_v2_type_tagging, set false as default now.
aggregator_v2_type_tagging: false,
check_invariant_in_swap_loc: false,
ty_builder: TypeBuilder::Legacy,
},
resolver,
)?,
chain_id,
Expand Down

0 comments on commit f7ac6d2

Please sign in to comment.