fix: Updates to new datatype after merging main
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user