From 6d8fb4e448f899682c955ee533e3f8582e05e760 Mon Sep 17 00:00:00 2001 From: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:40:58 -0700 Subject: [PATCH] fix metadata (#88) --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index bdc2412..566bddc 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -259,7 +259,7 @@ pub async fn fetch_metadata( vec!["canister".as_bytes().into(), id.as_slice().into()]; path.extend(sub_paths.split('/').map(|s| s.as_bytes().into())); let path = StatePath { - path: vec![sub_paths.as_bytes().into()], + path, effective_id: Some(id), kind: StateKind::Canister, result: StateType::Blob,