flow-core-contracts icon indicating copy to clipboard operation
flow-core-contracts copied to clipboard

Replace `while` loop with `for` loop once references are allowed

Open SupunS opened this issue 2 years ago • 0 comments

Issue To Be Solved

As discussed in https://github.com/onflow/flow-core-contracts/pull/382#discussion_r1326255239, The code had to be rewritten using a while loop, because references are not allowed in the for-loop.

Suggest A Solution

Revert this change once references are allowed to be used in for loop: https://github.com/onflow/cadence/issues/2784

SupunS avatar Sep 22 '23 15:09 SupunS