Skip to content

Commit

Permalink
fixup! [sui-adapter] Resolve Move abort locations to package ID inste…
Browse files Browse the repository at this point in the history
…ad of runtime ID
  • Loading branch information
tzakian committed May 23, 2024
1 parent 2c2aa4f commit 8a03b18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/sui-open-rpc/spec/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,7 @@
"recompute_has_public_transfer_in_execution": false,
"reject_mutable_random_on_entry_functions": false,
"reshare_at_same_initial_version": false,
"resolve_abort_locations_to_package_id": false,
"scoring_decision_with_validity_cutoff": true,
"shared_object_deletion": false,
"simple_conservation_checks": false,
Expand Down
2 changes: 1 addition & 1 deletion sui-execution/latest/sui-adapter/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(crate) fn convert_vm_error<S: MoveResolver<Err = SuiError>>(
}
(StatusCode::ABORTED, Some(code), Location::Module(id)) => {
let abort_location_id = if resolve_abort_location_to_package_id {
state_view.relocate(id).unwrap_or(id.clone())
state_view.relocate(id).unwrap_or_else(|_| id.clone())
} else {
id.clone()
};
Expand Down

0 comments on commit 8a03b18

Please sign in to comment.