chore: Don't call Chain TychoCoreChain unnecessarily
--- don't change below this line --- ENG-4255 Took 2 minutes
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user