F

Help with Index Modification Error

Summary

The user is seeking help with a high-priority error related to modifying an index during a loop, specifically regarding item removal. They have started a discussion thread with multiple participants and are open to renaming it if necessary, while also suggesting Stackoverflow for additional technical support. The user is confused about the need to remove signatures and plans to discuss the error's origin with their team, suspecting a link to the testnet. They note the error occurs in the emulator and question its significance. The user mentions that mutating an input argument in a function can lead to unintended consequences, describing it as a general anti-pattern, and is uncertain about how Cadence handles arrays in this situation. They provided a code snippet and proposed a quick patch to resolve the issue, while questioning the correctness of their approach. They also expressed gratitude to the Celer team for their assistance.

Status
resolved
Tags
    Source
    #🛠│developer-questions