From 4964e3409406a245c47f13a01a3b6b47295a4da7 Mon Sep 17 00:00:00 2001 From: Anxo Rodriguez Date: Thu, 10 Aug 2023 13:43:38 +0100 Subject: [PATCH] Rename var --- actions/watch.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/watch.ts b/actions/watch.ts index 3871a0f..0138fd7 100644 --- a/actions/watch.ts +++ b/actions/watch.ts @@ -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 @@ -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) ); }