@@ -61,8 +61,8 @@ contract AsyncFillerTest is SetupHook {
6161 AsyncOrder ({ key: key, owner: testUser, zeroForOne: true , amountIn: swapAmount, sqrtPrice: 2 ** 96 });
6262
6363 vm.startPrank (testExecutor);
64- token1.approve (address (router ), swapAmount);
65- router.fillOrder (fillOrder, abi.encode (address (router )));
64+ token1.approve (address (hook ), swapAmount);
65+ router.fillOrder (fillOrder, abi.encode (address (testExecutor )));
6666 vm.stopPrank ();
6767
6868 // Verify order was filled
@@ -90,9 +90,9 @@ contract AsyncFillerTest is SetupHook {
9090 AsyncOrder ({ key: key, owner: testUser, zeroForOne: true , amountIn: swapAmount, sqrtPrice: 2 ** 96 });
9191
9292 vm.startPrank (nonExecutor);
93- token1.approve (address (router ), swapAmount);
93+ token1.approve (address (hook ), swapAmount);
9494 vm.expectRevert ("Caller is valid not excutor " );
95- hook.executeOrder (fillOrder, "" );
95+ hook.executeOrder (fillOrder, abi.encode (nonExecutor) );
9696 vm.stopPrank ();
9797 }
9898
@@ -115,8 +115,8 @@ contract AsyncFillerTest is SetupHook {
115115 AsyncOrder ({ key: key, owner: testUser, zeroForOne: true , amountIn: fillAmount, sqrtPrice: 2 ** 96 });
116116
117117 vm.startPrank (testExecutor);
118- token1.approve (address (router ), fillAmount);
119- router.fillOrder (fillOrder, abi.encode (address (router )));
118+ token1.approve (address (hook ), fillAmount);
119+ router.fillOrder (fillOrder, abi.encode (address (testExecutor )));
120120 vm.stopPrank ();
121121
122122 // Verify partial fill
@@ -142,9 +142,9 @@ contract AsyncFillerTest is SetupHook {
142142 AsyncOrder ({ key: key, owner: testUser, zeroForOne: true , amountIn: excessFillAmount, sqrtPrice: 2 ** 96 });
143143
144144 vm.startPrank (testExecutor);
145- token1.approve (address (router ), excessFillAmount);
145+ token1.approve (address (hook ), excessFillAmount);
146146 vm.expectRevert ("Max fill order limit exceed " );
147- router.fillOrder (fillOrder, abi.encode (address (router )));
147+ router.fillOrder (fillOrder, abi.encode (address (testExecutor )));
148148 vm.stopPrank ();
149149 }
150150
@@ -172,8 +172,8 @@ contract AsyncFillerTest is SetupHook {
172172 AsyncOrder ({ key: key, owner: testUser, zeroForOne: true , amountIn: fillAmount, sqrtPrice: 2 ** 96 });
173173
174174 vm.startPrank (testExecutor);
175- token1.approve (address (router ), fillAmount);
176- router.fillOrder (fillOrder, abi.encode (address (router )));
175+ token1.approve (address (hook ), fillAmount);
176+ router.fillOrder (fillOrder, abi.encode (address (testExecutor )));
177177 vm.stopPrank ();
178178
179179 // Verify fill
@@ -199,7 +199,7 @@ contract AsyncFillerTest is SetupHook {
199199
200200 vm.startPrank (testExecutor);
201201 vm.expectRevert ("ZeroFillOrder() " );
202- hook.executeOrder (fillOrder, "" );
202+ hook.executeOrder (fillOrder, abi.encode (testExecutor) );
203203 vm.stopPrank ();
204204 }
205205
@@ -233,10 +233,10 @@ contract AsyncFillerTest is SetupHook {
233233 AsyncOrder ({ key: key, owner: testUser2, zeroForOne: true , amountIn: swapAmount2, sqrtPrice: 2 ** 96 });
234234
235235 vm.startPrank (testExecutor);
236- token1.approve (address (router ), swapAmount1 + swapAmount2);
236+ token1.approve (address (hook ), swapAmount1 + swapAmount2);
237237
238- router.fillOrder (fillOrder1, abi.encode (address (router )));
239- router.fillOrder (fillOrder2, abi.encode (address (router )));
238+ router.fillOrder (fillOrder1, abi.encode (address (testExecutor )));
239+ router.fillOrder (fillOrder2, abi.encode (address (testExecutor )));
240240 vm.stopPrank ();
241241
242242 // Verify both orders were filled
@@ -262,8 +262,8 @@ contract AsyncFillerTest is SetupHook {
262262 AsyncOrder ({ key: key, owner: testUser, zeroForOne: false , amountIn: swapAmount, sqrtPrice: 2 ** 96 });
263263
264264 vm.startPrank (testExecutor);
265- token0.approve (address (router ), swapAmount);
266- router.fillOrder (fillOrder, abi.encode (address (router )));
265+ token0.approve (address (hook ), swapAmount);
266+ router.fillOrder (fillOrder, abi.encode (address (testExecutor )));
267267 vm.stopPrank ();
268268
269269 // Verify order was filled
0 commit comments