Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Aug 10, 2023
1 parent d651577 commit 4964e34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actions/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ export const checkForAndPlaceOrder: ActionFn = async (

// enumerate all the owners
for (const [owner, conditionalOrders] of registry.ownerOrders.entries()) {
const deletedOrders = [];
const ordersPendingDelete = [];
// enumerate all the `ConditionalOrder`s for a given owner
for (const conditionalOrder of conditionalOrders) {
console.log(`Checking params ${conditionalOrder.params}...`);
// console.log(`Checking params ${conditionalOrder.params}...`);
const contract = ComposableCoW__factory.connect(
conditionalOrder.composableCow,
chainContext.provider
Expand All @@ -119,11 +119,11 @@ export const checkForAndPlaceOrder: ActionFn = async (
);

if (deleteConditionalOrder) {
deletedOrders.push(conditionalOrder);
ordersPendingDelete.push(conditionalOrder);
}
}

deletedOrders.forEach((conditionalOrder) =>
ordersPendingDelete.forEach((conditionalOrder) =>
conditionalOrders.delete(conditionalOrder)
);
}
Expand Down

0 comments on commit 4964e34

Please sign in to comment.