Skip to content

Commit

Permalink
[verifier] remove treat_friend_as_private from the verifier config
Browse files Browse the repository at this point in the history
  • Loading branch information
vgao1996 committed Dec 6, 2022
1 parent 81d19fc commit 2ef24ba
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ fn big_vec_unpacks() {
let res = verify_module_with_config(
&VerifierConfig {
max_loop_depth: Some(5),
treat_friend_as_private: false,
max_generic_instantiation_length: Some(32),
max_function_parameters: Some(128),
max_basic_blocks: Some(1024),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ fn big_signature_test() {
let res = verify_module_with_config(
&VerifierConfig {
max_loop_depth: Some(5),
treat_friend_as_private: false,
max_generic_instantiation_length: Some(32),
max_function_parameters: Some(128),
max_basic_blocks: Some(1024),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ fn test_vec_pack() {
let res = move_bytecode_verifier::verify_module_with_config(
&VerifierConfig {
max_loop_depth: Some(5),
treat_friend_as_private: true,
max_generic_instantiation_length: Some(32),
max_function_parameters: Some(128),
max_basic_blocks: Some(1024),
Expand Down
2 changes: 0 additions & 2 deletions language/move-bytecode-verifier/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use move_binary_format::{
#[derive(Debug, Clone)]
pub struct VerifierConfig {
pub max_loop_depth: Option<usize>,
pub treat_friend_as_private: bool,
pub max_function_parameters: Option<usize>,
pub max_generic_instantiation_length: Option<usize>,
pub max_basic_blocks: Option<usize>,
Expand Down Expand Up @@ -92,7 +91,6 @@ impl Default for VerifierConfig {
fn default() -> Self {
Self {
max_loop_depth: None,
treat_friend_as_private: false,
max_function_parameters: None,
max_generic_instantiation_length: None,
max_basic_blocks: None,
Expand Down

0 comments on commit 2ef24ba

Please sign in to comment.