We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5296a1b commit 25f74fbCopy full SHA for 25f74fb
script/05_ExecuteOrder.s.sol
@@ -22,9 +22,9 @@ contract ExecuteAsyncOrderScript is FFIHelper {
22
function run() public {
23
vm.startBroadcast(OWNER);
24
if (order.zeroForOne) {
25
- IERC20Minimal(Currency.unwrap(order.key.currency1)).approve(address(router), order.amountIn);
+ IERC20Minimal(Currency.unwrap(order.key.currency1)).approve(address(order.key.hooks), order.amountIn);
26
} else {
27
- IERC20Minimal(Currency.unwrap(order.key.currency0)).approve(address(router), order.amountIn);
+ IERC20Minimal(Currency.unwrap(order.key.currency0)).approve(address(order.key.hooks), order.amountIn);
28
}
29
router.fillOrder(order, abi.encode(router));
30
vm.stopBroadcast();
0 commit comments