Skip to content

Commit

Permalink
commmit (MystenLabs#2608)
Browse files Browse the repository at this point in the history
  • Loading branch information
longbowlu authored Jun 17, 2022
1 parent 75a4105 commit 2138257
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/sui-types/src/move_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ where
{
let mut disassembled = BTreeMap::new();
for bytecode in modules {
let module = CompiledModule::deserialize(bytecode)
.expect("Adapter publish flow ensures that this bytecode deserializes");
let module = CompiledModule::deserialize(bytecode).map_err(|error| {
SuiError::ModuleDeserializationFailure {
error: error.to_string(),
}
})?;
let view = BinaryIndexedView::Module(&module);
let d = Disassembler::from_view(view, Spanned::unsafe_no_loc(()).loc).map_err(|e| {
SuiError::ObjectSerializationError {
Expand Down

0 comments on commit 2138257

Please sign in to comment.