Skip to content

Commit

Permalink
[cherry-pick][denylist] Fix sign check early return (#18952)
Browse files Browse the repository at this point in the history
## 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:
  • Loading branch information
lxfind authored Aug 12, 2024
1 parent 0de46e0 commit ea010a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sui-types/src/deny_list_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit ea010a0

Please sign in to comment.