From 4390bc841a58da32902dd49c326729a6236c2f8b Mon Sep 17 00:00:00 2001 From: Ryan Tate Date: Thu, 19 Sep 2024 20:31:07 -0700 Subject: [PATCH] fix from any json presentation for vp token impl Signed-off-by: Ryan Tate --- src/core/response/parameters.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/response/parameters.rs b/src/core/response/parameters.rs index 5e04b7e..ed2e56d 100644 --- a/src/core/response/parameters.rs +++ b/src/core/response/parameters.rs @@ -98,7 +98,7 @@ impl TryFrom for VpToken { type Error = Error; fn try_from(vp: AnyJsonPresentation) -> Result { - Self::try_from(serde_json::to_value(vp)?) + Ok(VpToken::Single(serde_json::to_vec(&vp)?)) } }