Skip to content

Commit

Permalink
Correct the FIXME for command
Browse files Browse the repository at this point in the history
  • Loading branch information
expede committed Mar 21, 2024
1 parent 93cce69 commit 643b466
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/invocation/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ where
&self,
audience: Option<DID>,
subject: DID,
// command: String,
ability: T,
metadata: BTreeMap<String, Ipld>,
cause: Option<Cid>,
Expand All @@ -99,7 +98,13 @@ where
) -> Result<Invocation<T, DID, V, C>, InvokeError<D::DelegationStoreError>> {
let proofs = self
.delegation_store
.get_chain(&self.did, &Some(subject.clone()), "/".into(), vec![], now) // FIXME
.get_chain(
&self.did,
&Some(subject.clone()),
ability.to_command(),
vec![],
now,
)
.map_err(InvokeError::DelegationStoreError)?
.map(|chain| chain.map(|(cid, _)| cid).into())
.unwrap_or(vec![]);
Expand Down

0 comments on commit 643b466

Please sign in to comment.