test: Router integration test with many TODOs

This commit is contained in:
TAMARA LIPOWSKI
2025-01-30 23:36:10 -05:00
committed by Diana Carvalho
parent b01fa4cf04
commit 4d697bfebf
4 changed files with 37 additions and 9 deletions

View File

@@ -124,6 +124,7 @@ impl StrategyEncoder for SplitSwapStrategyEncoder {
U8::from(
tokens
.iter()
// TODO Something is wrong with our token in and out indices
.position(|t| *t == swap.token_in)
.ok_or_else(|| {
EncodingError::InvalidInput(
@@ -134,6 +135,7 @@ impl StrategyEncoder for SplitSwapStrategyEncoder {
U8::from(
tokens
.iter()
// TODO Something is wrong with our token in and out indices
.position(|t| *t == swap.token_out)
.ok_or_else(|| {
EncodingError::InvalidInput(
@@ -385,6 +387,7 @@ mod tests {
));
let hex_calldata = encode(&calldata);
println!("{}", hex_calldata);
assert_eq!(hex_calldata[..520], expected_input);
assert_eq!(hex_calldata[1288..], expected_swaps);
}