Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts: Include unresolved accounts in the resolution error message #3207

Conversation

acheroncrypto
Copy link
Collaborator

Problem

If account resolution fails to resolve all accounts, it throws:

Error: Reached maximum depth for account resolution

This is a pretty generic error and doesn't tell which accounts weren't able to get resolved, as also mentioned in #3111 (comment).

Summary of changes

  • Include the unresolved accounts in the resolution error message:

    Reached maximum depth for account resolution. Unresolved accounts: `pda`, `anotherPda`
    
  • Add a test case

Resolves #3111

Copy link

vercel bot commented Aug 28, 2024

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto merged commit 65c159f into coral-xyz:master Aug 28, 2024
0 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: Make accounts tell me what accounts I need to pass
1 participant