From 8b2af4f5775a14fd508c6660e43c541e9faeeb0d Mon Sep 17 00:00:00 2001 From: Diana Carvalho Date: Thu, 20 Feb 2025 17:44:41 +0000 Subject: [PATCH] feat: Implement Clone for EVMTychoEncoder --- don't change below this line --- ENG-4255 Took 6 minutes --- src/encoding/evm/tycho_encoder.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/encoding/evm/tycho_encoder.rs b/src/encoding/evm/tycho_encoder.rs index aef79b7..cfd4375 100644 --- a/src/encoding/evm/tycho_encoder.rs +++ b/src/encoding/evm/tycho_encoder.rs @@ -20,6 +20,16 @@ pub struct EVMTychoEncoder { wrapped_address: Bytes, } +impl Clone for EVMTychoEncoder { + fn clone(&self) -> Self { + Self { + strategy_encoder: self.strategy_encoder.clone_box(), + native_address: self.native_address.clone(), + wrapped_address: self.wrapped_address.clone(), + } + } +} + impl EVMTychoEncoder { pub fn new( chain: tycho_core::models::Chain,