From ef0f9ab959514e2c6dcb545cad2edbfeee863c15 Mon Sep 17 00:00:00 2001 From: Diana Carvalho Date: Thu, 16 Oct 2025 16:39:13 +0100 Subject: [PATCH] fix: Make TychoEncode Send + Sync Took 10 minutes --- src/encoding/tycho_encoder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding/tycho_encoder.rs b/src/encoding/tycho_encoder.rs index 4c5c230..b696de3 100644 --- a/src/encoding/tycho_encoder.rs +++ b/src/encoding/tycho_encoder.rs @@ -25,7 +25,7 @@ use crate::encoding::{ /// Tycho is only responsible for generating the internal swap plan. **The user must encode the /// outer function call arguments themselves** and verify that they enforce correct and secure /// behavior. -pub trait TychoEncoder { +pub trait TychoEncoder: Send + Sync { /// Encodes a list of [`Solution`]s into [`EncodedSolution`]s, which include the function /// signature and internal swap call data. ///