flow-core-contracts
flow-core-contracts copied to clipboard
Replace `while` loop with `for` loop once references are allowed
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