From 339ea52864ce2963526891ac5dff88d5c61ba178 Mon Sep 17 00:00:00 2001 From: Uncle Stinky Date: Sat, 26 Sep 2026 16:04:57 +0300 Subject: [PATCH] avoid memory allocation during and_provides Signed-off-by: Uncle Stinky --- pallets/weaver/Cargo.toml | 2 +- pallets/weaver/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pallets/weaver/Cargo.toml b/pallets/weaver/Cargo.toml index 03124ec..6c2ebbd 100644 --- a/pallets/weaver/Cargo.toml +++ b/pallets/weaver/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ghost-weaver" -version = "0.0.16" +version = "0.0.17" description = "Weaving a secure cryptographic tapestry across different external chains." license.workspace = true authors.workspace = true diff --git a/pallets/weaver/src/lib.rs b/pallets/weaver/src/lib.rs index 65a49ba..ddc9b2f 100644 --- a/pallets/weaver/src/lib.rs +++ b/pallets/weaver/src/lib.rs @@ -626,7 +626,7 @@ pub mod pallet { ValidTransaction::with_tag_prefix("WeaverThread") .priority(T::UnsignedPriority::get()) - .and_provides(thread_context.encode()) + .and_provides(thread_context.to_fixed_bytes()) .longevity(LOCK_BLOCK_EXPIRATION) .propagate(true) .build()