Skip to content

Commit 6da02fc

Browse files
lklimekCopilot
andauthored
Update src/backend_task/identity/add_key_to_identity.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 4780643 commit 6da02fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/backend_task/identity/add_key_to_identity.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@ mod tests {
207207
);
208208
let sdk_err = SdkError::from(consensus);
209209
let err = broadcast_error(&sdk_err);
210+
let expected_contract_id = contract_id.to_string();
210211
assert!(
211-
matches!(err, TaskError::IdentityPublicKeyContractBoundsConflict { ref contract_id } if !contract_id.is_empty())
212+
matches!(err, TaskError::IdentityPublicKeyContractBoundsConflict { ref contract_id } if *contract_id == expected_contract_id)
212213
);
213214
}
214215

0 commit comments

Comments
 (0)