fix: Updates to new datatype after merging main

This commit is contained in:
TAMARA LIPOWSKI
2025-08-21 11:03:01 -04:00
parent acb93c0fe6
commit e9c1a39608
3 changed files with 4 additions and 4 deletions

View File

@@ -2304,7 +2304,7 @@ mod tests {
let swap = SwapBuilder::new(hashflow_component, token_in.clone(), token_out.clone())
.estimated_amount_in(BigUint::from_str("3000000000").unwrap())
.protocol_state(&hashflow_state)
.protocol_state(Arc::new(hashflow_state))
.build();
let encoding_context = EncodingContext {

View File

@@ -800,7 +800,7 @@ fn test_uniswap_v3_hashflow() {
let swap_usdc_wbtc = SwapBuilder::new(hashflow_component, usdc.clone(), wbtc.clone())
.estimated_amount_in(BigUint::from_str("4308094737").unwrap())
.protocol_state(&hashflow_state)
.protocol_state(Arc::new(hashflow_state))
.build();
let encoder = get_tycho_router_encoder(UserTransferType::TransferFrom);

View File

@@ -1,5 +1,5 @@
mod common;
use std::{collections::HashMap, str::FromStr};
use std::{collections::HashMap, str::FromStr, sync::Arc};
use alloy::{hex, hex::encode};
use num_bigint::{BigInt, BigUint};
@@ -785,7 +785,7 @@ fn test_single_encoding_strategy_hashflow() {
let swap_usdc_wbtc = SwapBuilder::new(hashflow_component, usdc.clone(), wbtc.clone())
.estimated_amount_in(BigUint::from_str("4308094737").unwrap())
.protocol_state(&hashflow_state)
.protocol_state(Arc::new(hashflow_state))
.build();
let encoder = get_tycho_router_encoder(UserTransferType::TransferFrom);