diff --git a/sdk/src/client/api/block_builder/input_selection/mod.rs b/sdk/src/client/api/block_builder/input_selection/mod.rs index 9c3c2527f3..113513f103 100644 --- a/sdk/src/client/api/block_builder/input_selection/mod.rs +++ b/sdk/src/client/api/block_builder/input_selection/mod.rs @@ -235,8 +235,8 @@ impl InputSelection { .unwrap() .0; - if let Address::Restricted(address) = required_address { - self.addresses.contains(address.address()) + if let Address::Restricted(restricted_address) = required_address { + self.addresses.contains(restricted_address.address()) } else { self.addresses.contains(&required_address) }