fix: cache for querying scripts correclty handles ScriptMetadata (#5466)

This commit is contained in:
wendrul
2025-03-11 20:04:23 +01:00
committed by GitHub
parent bd7586a5ee
commit 6dd2502d70
+7 -1
View File
@@ -802,6 +802,12 @@ const _: () = {
}
}
impl ScriptMetadata {
fn export_metadata(&self, dst: &impl Storage) -> error::Result<()> {
Ok(dst.put("info.json", serde_json::to_vec(self)?)?)
}
}
impl Export for ScriptFull {
type Untrusted = RawScript;
@@ -817,7 +823,7 @@ const _: () = {
fn export(&self, dst: &impl Storage) -> error::Result<()> {
self.data.export(dst)?;
self.meta.export(dst)?;
self.meta.export_metadata(dst)?;
Ok(())
}
}