magicblock-labs / bolt

High-performance, Composable framework for Fully On Chain Games and Autonomous Worlds
https://book.boltengine.gg
MIT License
31 stars 10 forks source link

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

Open kilogold opened 1 day ago

kilogold commented 1 day ago

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

Expected behavior No linter errors.

Additional context Using bolt-cli 0.1.10

notdanilo commented 1 day ago

@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.