From 6771f3a4117c86025e15645c84c5af8906fa3b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Tue, 7 Apr 2026 11:13:58 -0700 Subject: [PATCH 1/2] optimize iteration over dictionary keys --- cadence/contracts/interfaces/DeFiActions.cdc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cadence/contracts/interfaces/DeFiActions.cdc b/cadence/contracts/interfaces/DeFiActions.cdc index 22fdc3c..20e8df9 100644 --- a/cadence/contracts/interfaces/DeFiActions.cdc +++ b/cadence/contracts/interfaces/DeFiActions.cdc @@ -1115,7 +1115,7 @@ access(all) contract DeFiActions { } // check for other scheduled transactions within the desired interval - for id in self._scheduledTransactions.keys { + for id in self._scheduledTransactions { if id == whileExecuting { continue } @@ -1244,7 +1244,7 @@ access(all) contract DeFiActions { let limit = 50 var iter = 0 // iterate over the scheduled transactions and remove those that are not scheduled - for id in self._scheduledTransactions.keys { + for id in self._scheduledTransactions { iter = iter + 1 if iter > limit { break From e4091825e9b81a0bec41d07806d7a73359df5723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=BCller?= Date: Tue, 7 Apr 2026 12:27:06 -0700 Subject: [PATCH 2/2] update CLI --- .github/workflows/cadence_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cadence_tests.yml b/.github/workflows/cadence_tests.yml index ff0638d..6250866 100644 --- a/.github/workflows/cadence_tests.yml +++ b/.github/workflows/cadence_tests.yml @@ -23,7 +23,7 @@ jobs: path: ./imports key: flow-deps-${{ hashFiles('flow.json') }} - name: Install Flow CLI - run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v2.15.3 + run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v2.16.0 - name: Flow CLI Version run: flow version - name: Update PATH and show Flow version