fix: Derive Clone in TychoEncoders

This commit is contained in:
TAMARA LIPOWSKI
2025-04-29 17:06:41 -04:00
parent df96303b90
commit f99bd296a1

View File

@@ -25,6 +25,7 @@ use crate::encoding::{
/// * `split_swap_strategy`: Encoder for split swaps /// * `split_swap_strategy`: Encoder for split swaps
/// * `native_address`: Address of the chain's native token /// * `native_address`: Address of the chain's native token
/// * `wrapped_address`: Address of the chain's wrapped native token /// * `wrapped_address`: Address of the chain's wrapped native token
#[derive(Clone)]
pub struct TychoRouterEncoder { pub struct TychoRouterEncoder {
single_swap_strategy: SingleSwapStrategyEncoder, single_swap_strategy: SingleSwapStrategyEncoder,
sequential_swap_strategy: SequentialSwapStrategyEncoder, sequential_swap_strategy: SequentialSwapStrategyEncoder,
@@ -213,6 +214,7 @@ impl TychoEncoder for TychoRouterEncoder {
/// # Fields /// # Fields
/// * `swap_encoder_registry`: Registry of swap encoders /// * `swap_encoder_registry`: Registry of swap encoders
/// * `native_address`: Address of the chain's native token /// * `native_address`: Address of the chain's native token
#[derive(Clone)]
pub struct TychoExecutorEncoder { pub struct TychoExecutorEncoder {
swap_encoder_registry: SwapEncoderRegistry, swap_encoder_registry: SwapEncoderRegistry,
native_address: Bytes, native_address: Bytes,