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

cli: Fix shell command failing due to outdated program initialization #3351

Conversation

acheroncrypto
Copy link
Collaborator

Problem

shell command fails with:

TypeError: Cannot read properties of undefined (reading 'size')

This is due to the outdated program initialization (with the second argument being the program id):

anchor.workspace.{} = new anchor.Program({}, new PublicKey("{}"), provider);

Summary of changes

Fix shell command failing due to outdated program initialization.

@acheroncrypto acheroncrypto added cli fix Bug fix PR labels Nov 8, 2024
Copy link

vercel bot commented Nov 8, 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 8dca0d6 into coral-xyz:master Nov 8, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli fix Bug fix PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant