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

[Bug] New project has Typescript errors in tests. #106

Closed
kilogold opened this issue Dec 1, 2024 · 2 comments
Closed

[Bug] New project has Typescript errors in tests. #106

kilogold opened this issue Dec 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kilogold
Copy link

kilogold commented Dec 1, 2024

Describe the bug
The default bolt test runs successfully, but linter errors exist on the following default test:

Line 9:

Module '"@magicblock-labs/bolt-sdk"' has no exported member 'Program'. ts(2305)

Line 45:

Property 'entityId' does not exist on type '{ instruction: TransactionInstruction; transaction: Transaction; entityPda: PublicKey; }'. Did you mean 'entityPda'? ts(2551)

To Reproduce
Steps to reproduce the behavior:

  1. bolt init bug
  2. cd bug
  3. bolt test

Workaround

  • Manually import Program from Anchor package.
  • Use entityPda instead of entityId.

Expected behavior
No linter errors.

Additional context
Using bolt-cli 0.1.10

@kilogold kilogold added the bug Something isn't working label Dec 1, 2024
@notdanilo
Copy link
Contributor

@kilogold can you try the latest bolt-cli with cargo install --git https://github.com/magicblock-labs/bolt bolt-cli?
I will publish a new version asap.

@notdanilo
Copy link
Contributor

It should be fixed in 0.1.11. Please re-open the issue if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants