feat: Add methods to builder to set chain and strategy independently

--- don't change below this line ---
ENG-4246 Took 15 minutes
This commit is contained in:
Diana Carvalho
2025-02-19 11:15:27 +00:00
parent 4741e628b8
commit 684de4fa60
3 changed files with 54 additions and 18 deletions

View File

@@ -21,7 +21,9 @@ fn main() {
.expect("Failed to create user address");
// Initialize the encoder
let encoder = EVMEncoderBuilder::tycho_router(TychoCoreChain::Ethereum, swapper_pk, None)
let encoder = EVMEncoderBuilder::new()
.chain(TychoCoreChain::Ethereum)
.tycho_router(swapper_pk, None)
.expect("Failed to create encoder builder")
.build()
.expect("Failed to build encoder");