Closed everlastingsong closed 2 years ago
Do not add derive(Default) to structures containing arrays longer than 32 because derive(Default) generates code that cannot be compiled.
This IDL contains TickArray account which has ticks field which is an array of size 88. https://github.com/orca-so/whirlpools/blob/main/sdk/src/artifacts/whirlpool.json
Very nice. I'll add this to the docs
Do not add derive(Default) to structures containing arrays longer than 32 because derive(Default) generates code that cannot be compiled.
This IDL contains TickArray account which has ticks field which is an array of size 88. https://github.com/orca-so/whirlpools/blob/main/sdk/src/artifacts/whirlpool.json