chore: Don't call Chain TychoCoreChain unnecessarily

--- don't change below this line ---
ENG-4255 Took 2 minutes
This commit is contained in:
Diana Carvalho
2025-02-20 18:31:28 +00:00
parent 8b2af4f577
commit 918bc27e39

View File

@@ -2,7 +2,7 @@ use std::str::FromStr;
use num_bigint::BigUint; use num_bigint::BigUint;
use tycho_core::{ use tycho_core::{
models::{protocol::ProtocolComponent, Chain as TychoCoreChain}, models::{protocol::ProtocolComponent, Chain},
Bytes, Bytes,
}; };
use tycho_execution::encoding::{ use tycho_execution::encoding::{
@@ -22,7 +22,7 @@ fn main() {
// Initialize the encoder // Initialize the encoder
let encoder = EVMEncoderBuilder::new() let encoder = EVMEncoderBuilder::new()
.chain(TychoCoreChain::Ethereum) .chain(Chain::Ethereum)
.tycho_router_with_permit2(None, swapper_pk) .tycho_router_with_permit2(None, swapper_pk)
.expect("Failed to create encoder builder") .expect("Failed to create encoder builder")
.build() .build()