diff --git a/dan_layer/engine_types/src/published_template.rs b/dan_layer/engine_types/src/published_template.rs index 408ef5165..0a9f71de3 100644 --- a/dan_layer/engine_types/src/published_template.rs +++ b/dan_layer/engine_types/src/published_template.rs @@ -63,6 +63,12 @@ impl FromStr for PublishedTemplateAddress { } } +impl borsh::BorshSerialize for PublishedTemplateAddress { + fn serialize(&self, writer: &mut W) -> std::io::Result<()> { + borsh::BorshSerialize::serialize(self.as_object_key().array(), writer) + } +} + #[derive(Debug, Clone, Serialize, Deserialize)] #[cfg_attr( feature = "ts", diff --git a/dan_layer/template_lib/src/panic_hook.rs b/dan_layer/template_lib/src/panic_hook.rs index 3ee3e0dde..6ce16372c 100644 --- a/dan_layer/template_lib/src/panic_hook.rs +++ b/dan_layer/template_lib/src/panic_hook.rs @@ -24,7 +24,7 @@ use tari_template_abi::on_panic; -fn hook(info: &std::panic::PanicHookInfo<'_>) { +fn hook(info: &std::panic::PanicInfo<'_>) { let error_msg = info .payload() .downcast_ref::()