d153296ac147fac59f3831c22d64dd68a1cf2028
Two bugs: 1. Swift 6 strict concurrency: JSONDecoder().decode() inside actor-isolated methods triggers "Main actor-isolated conformance cannot be used in actor-isolated context". Fix: move all Decodable usage into nonisolated helper methods (parseChart, parseOptions, makeContract) so the conformance is invoked outside the actor's isolation boundary. 2. Wrong nested type path: OptionsResponse.OptionData.YFOption does not exist; YFOption is nested directly under OptionsResponse. Fix: reference OptionsResponse.YFOption everywhere and remove the old private extension in favour of the nonisolated makeContract(from:) factory method. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Description
No description provided
Languages
Swift
70%
Python
30%