From ea010a09195ad185230255ecf1b5c675146ffcf8 Mon Sep 17 00:00:00 2001 From: Xun Li Date: Mon, 12 Aug 2024 09:12:35 -0700 Subject: [PATCH] [cherry-pick][denylist] Fix sign check early return (#18952) ## Description Describe the changes or additions included in this PR. ## Test plan How did you test the new or updated feature? --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [ ] CLI: - [ ] Rust SDK: - [ ] REST API: --- crates/sui-types/src/deny_list_v2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/sui-types/src/deny_list_v2.rs b/crates/sui-types/src/deny_list_v2.rs index 6ac9f049acb95..ebe0e982d030c 100644 --- a/crates/sui-types/src/deny_list_v2.rs +++ b/crates/sui-types/src/deny_list_v2.rs @@ -109,7 +109,7 @@ pub fn check_coin_deny_list_v2_during_signing( let coin_types = input_object_coin_types_for_denylist_check(input_objects, receiving_objects); for coin_type in coin_types { let Some(deny_list) = get_per_type_coin_deny_list_v2(&coin_type, object_store) else { - return Ok(()); + continue; }; if check_global_pause(&deny_list, object_store, None) { return Err(UserInputError::CoinTypeGlobalPause { coin_type });