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 0d13c3d commit af0cfa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/sui-open-rpc/spec/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@
"name": "Result",
"value": {
"minSupportedProtocolVersion": "1",
"maxSupportedProtocolVersion": "46",
"maxSupportedProtocolVersion": "47",
"protocolVersion": "6",
"featureFlags": {
"accept_zklogin_in_multisig": false,
Expand Down 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 af0cfa6

Please sign in to comment.