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.
See https://github.com/wormhole-foundation/example-native-token-transfers/pull/507#issuecomment-2327009781
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 useUncheckedAccount
for readability and performance. However, usingUncheckedAccount
leads to a stack overflow error.