From 4ef9b0b82fe8a531b11186d492856a7717fbc4cf Mon Sep 17 00:00:00 2001 From: royvardhan Date: Thu, 30 Jan 2025 18:13:47 +0530 Subject: [PATCH] chore: use Bytes --- src/encoding/evm/strategy_encoder/encoder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encoding/evm/strategy_encoder/encoder.rs b/src/encoding/evm/strategy_encoder/encoder.rs index 12cac05..f7fe0f4 100644 --- a/src/encoding/evm/strategy_encoder/encoder.rs +++ b/src/encoding/evm/strategy_encoder/encoder.rs @@ -71,9 +71,9 @@ impl StrategyEncoder for ExecutorStrategyEncoder { router_address, }; let protocol_data = swap_encoder.encode_swap(swap.clone(), encoding_context)?; - let executor_address = Address::from_str(swap_encoder.executor_address()) + let executor_address = Bytes::from_str(swap_encoder.executor_address()) .map_err(|_| EncodingError::FatalError("Invalid executor address".to_string()))?; - Ok((protocol_data, Bytes::from(executor_address.as_slice()))) + Ok((protocol_data, executor_address)) } fn selector(&self, _exact_out: bool) -> &str { "swap(uint256, bytes)"