Parse assignees on issue creation properly

This commit is contained in:
Erik Kundt
2023-09-01 16:08:38 +02:00
parent 0325cb57d9
commit 7f08d4d72d
+1 -1
View File
@@ -26,7 +26,7 @@ pub fn parse_assignees(input: String) -> Result<Vec<Did>> {
let mut assignees = vec![];
if !input.is_empty() {
for did in input.split(',') {
match Did::from_str(did) {
match Did::from_str(&format!("did:key:{}", did)) {
Ok(did) => assignees.push(did),
Err(err) => return Err(anyhow::anyhow!(err).context("Can't parse assignees.")),
}