wormhole-foundation/example-native-token-transfers

solana: Replacing `AccountInfo` with `UncheckedAccount` leads to stack access violation

Opened this issue · 1 comments

See #507 (comment)

UncheckedAccount and AccountInfo both represent unchecked accounts in Anchor. As per this feature request, AccountInfo may be deprecated in the future and it is recommended to use UncheckedAccount for readability and performance. However, using UncheckedAccount leads to a stack overflow error.

Initial debug attempt by Box-ing the rate_limit account in initialize was not enough. See #509