refactor: remove effectiveTrader from calldata and always set it to trader's value

This commit is contained in:
adrian
2025-08-21 09:51:36 +02:00
committed by Adrian Benavides
parent 5c5678f291
commit 52c91a12b8
4 changed files with 15 additions and 29 deletions

View File

@@ -741,11 +741,6 @@ fn test_hashflow() {
"trader".to_string(),
Bytes::from_str("0xcd09f75e2bf2a4d11f3ab23f1389fcc1621c0cc2").unwrap(),
),
(
// Passing the tycho router address here has no effect
"effective_trader".to_string(),
Bytes::from_str("0xcd09f75e2bf2a4d11f3ab23f1389fcc1621c0cc2").unwrap(),
),
(
"base_token".to_string(),
Bytes::from_str("0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48").unwrap(),
@@ -872,11 +867,6 @@ fn test_uniswap_v3_hashflow() {
"trader".to_string(),
Bytes::from_str("0xcd09f75e2bf2a4d11f3ab23f1389fcc1621c0cc2").unwrap(),
),
(
// Passing the tycho router address here has no effect
"effective_trader".to_string(),
Bytes::from_str("0xcd09f75e2bf2a4d11f3ab23f1389fcc1621c0cc2").unwrap(),
),
(
"base_token".to_string(),
Bytes::from_str("0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48").unwrap(),