Skip to content

Commit

Permalink
fix: declare path and solverOps arrays in test
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSparksCode committed Sep 27, 2024
1 parent 793036d commit dcc2b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/UniswapV2DAppControl.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ contract UniswapV2DAppControlTest is BaseTest {
vm.label(address(executionEnvironment), "EXECUTION ENV");

// Define the token swap path for Uniswap V2: from WETH to DAI.
address;
address[] memory path = new address[](2);
path[0] = WETH_ADDRESS; // Starting token: Wrapped ETH
path[1] = DAI_ADDRESS; // Target token: DAI

Expand Down Expand Up @@ -192,6 +192,7 @@ contract UniswapV2DAppControlTest is BaseTest {
// - solverContract: Address of the deployed BasicV2Solver contract
// - bidAmount: 0.1 WETH (1e17 wei) as the bid for the backrun opportunity
// - value: 0 (no ETH is sent with the solver operation)
SolverOperation[] memory solverOps = new SolverOperation[](1);
solverOps[0] = txBuilder.buildSolverOperation({
userOp: userOp,
solverOpData: solverOpData,
Expand Down

0 comments on commit dcc2b52

Please sign in to comment.