Skip to content

Commit

Permalink
fix: missing types (#1221)
Browse files Browse the repository at this point in the history
Description
---
Fixing errors while compilation because of invalid types.

Motivation and Context
---

How Has This Been Tested?
---

What process can a PR reviewer use to test or verify this change?
---


Breaking Changes
---

- [x] None
- [ ] Requires data directory to be deleted
- [ ] Other - Please specify
  • Loading branch information
karczuRF authored Dec 18, 2024
1 parent 0f8262d commit dadfd5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dan_layer/engine_types/src/published_template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ impl FromStr for PublishedTemplateAddress {
}
}

impl borsh::BorshSerialize for PublishedTemplateAddress {
fn serialize<W: std::io::Write>(&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",
Expand Down
2 changes: 1 addition & 1 deletion dan_layer/template_lib/src/panic_hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<String>()
Expand Down

0 comments on commit dadfd5d

Please sign in to comment.