diff --git a/language/move-vm/integration-tests/src/tests/bad_entry_point_tests.rs b/language/move-vm/integration-tests/src/tests/bad_entry_point_tests.rs index 001ba714a7..cc0e1dfec9 100644 --- a/language/move-vm/integration-tests/src/tests/bad_entry_point_tests.rs +++ b/language/move-vm/integration-tests/src/tests/bad_entry_point_tests.rs @@ -43,7 +43,7 @@ fn call_non_existent_function() { let code = r#" module {{ADDR}}::M {} "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let m = as_module(units.pop().unwrap()); diff --git a/language/move-vm/integration-tests/src/tests/bad_storage_tests.rs b/language/move-vm/integration-tests/src/tests/bad_storage_tests.rs index 4f0072f5fe..5b3615a584 100644 --- a/language/move-vm/integration-tests/src/tests/bad_storage_tests.rs +++ b/language/move-vm/integration-tests/src/tests/bad_storage_tests.rs @@ -64,7 +64,7 @@ fn test_malformed_resource() { } } "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let s2 = as_script(units.pop().unwrap()); @@ -160,7 +160,7 @@ fn test_malformed_module() { } "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let m = as_module(units.pop().unwrap()); @@ -214,7 +214,7 @@ fn test_unverifiable_module() { } "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let m = as_module(units.pop().unwrap()); @@ -273,7 +273,7 @@ fn test_missing_module_dependency() { public fun bar() { M::foo(); } } "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let n = as_module(units.pop().unwrap()); let m = as_module(units.pop().unwrap()); @@ -320,7 +320,7 @@ fn test_missing_module_dependency() { } #[test] -fn test_malformed_module_denpency() { +fn test_malformed_module_dependency() { // Compile two modules M, N where N depends on M. let code = r#" module {{ADDR}}::M { @@ -333,7 +333,7 @@ fn test_malformed_module_denpency() { public fun bar() { M::foo(); } } "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let n = as_module(units.pop().unwrap()); let m = as_module(units.pop().unwrap()); @@ -399,7 +399,7 @@ fn test_unverifiable_module_dependency() { public fun bar() { M::foo(); } } "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let n = as_module(units.pop().unwrap()); let m = as_module(units.pop().unwrap()); @@ -534,7 +534,7 @@ fn test_storage_returns_bogus_error_when_loading_resource() { } } "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let m = as_module(units.pop().unwrap()); diff --git a/language/move-vm/integration-tests/src/tests/function_arg_tests.rs b/language/move-vm/integration-tests/src/tests/function_arg_tests.rs index c77ac70224..e1394a65e5 100644 --- a/language/move-vm/integration-tests/src/tests/function_arg_tests.rs +++ b/language/move-vm/integration-tests/src/tests/function_arg_tests.rs @@ -36,7 +36,7 @@ fn run( let code = format!( r#" - module 0x{}::M {{ + module {}::M {{ struct Foo has copy, drop {{ x: u64 }} struct Bar has copy, drop {{ x: T }} diff --git a/language/move-vm/integration-tests/src/tests/mutated_accounts_tests.rs b/language/move-vm/integration-tests/src/tests/mutated_accounts_tests.rs index fa2366c401..da8edebf2d 100644 --- a/language/move-vm/integration-tests/src/tests/mutated_accounts_tests.rs +++ b/language/move-vm/integration-tests/src/tests/mutated_accounts_tests.rs @@ -32,7 +32,7 @@ fn mutated_accounts() { } "#; - let code = code.replace("{{ADDR}}", &format!("0x{}", TEST_ADDR.to_string())); + let code = code.replace("{{ADDR}}", &format!("{}", TEST_ADDR)); let mut units = compile_units(&code).unwrap(); let m = as_module(units.pop().unwrap()); let mut blob = vec![]; diff --git a/language/move-vm/integration-tests/src/tests/return_value_tests.rs b/language/move-vm/integration-tests/src/tests/return_value_tests.rs index 986b5c190c..526bf6d74e 100644 --- a/language/move-vm/integration-tests/src/tests/return_value_tests.rs +++ b/language/move-vm/integration-tests/src/tests/return_value_tests.rs @@ -27,7 +27,7 @@ fn run( let code = format!( r#" - module 0x{}::M {{ + module {}::M {{ {} fun foo{} {{