Skip to content

Commit

Permalink
fix from any json presentation for vp token impl
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Tate <[email protected]>
  • Loading branch information
Ryanmtate committed Sep 20, 2024
1 parent 270d37e commit 4390bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/response/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl TryFrom<AnyJsonPresentation> for VpToken {
type Error = Error;

fn try_from(vp: AnyJsonPresentation) -> Result<Self, Self::Error> {
Self::try_from(serde_json::to_value(vp)?)
Ok(VpToken::Single(serde_json::to_vec(&vp)?))
}
}

Expand Down

0 comments on commit 4390bc8

Please sign in to comment.