Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
awelc committed Jan 6, 2025
1 parent 1ec008b commit a6fe15a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/sui-framework-tests/tests/move_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub(crate) fn tests(path: &Path) -> datatest_stable::Result<()> {
testing_config.filter = std::env::var("FILTER").ok().map(|s| s.to_string());

assert_eq!(
run_move_unit_tests(path, move_config, Some(testing_config), false).unwrap(),
run_move_unit_tests(path, move_config, Some(testing_config), false, false).unwrap(),
UnitTestResult::Success
);

Expand Down
6 changes: 3 additions & 3 deletions crates/sui-mvr-graphql-rpc/src/types/move_module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,14 +414,14 @@ impl MoveModule {

/// Textual representation of the module's bytecode.
async fn disassembly(&self) -> Result<Option<String>> {
Ok(Some(
let (disassemble_string, _) =
Disassembler::from_module(self.parsed.bytecode(), Loc::invalid())
.map_err(|e| Error::Internal(format!("Error creating disassembler: {e}")))
.extend()?
.disassemble()
.map_err(|e| Error::Internal(format!("Error creating disassembly: {e}")))
.extend()?,
))
.extend()?;
Ok(Some(disassemble_string))
}
}

Expand Down

0 comments on commit a6fe15a

Please sign in to comment.