solana-developers / program-examples

A repository of Solana program examples
807 stars 303 forks source link

Add basics/account-data/poseidon #224

Open 0xCipherCoder opened 1 month ago

0xCipherCoder commented 1 month ago
heyAyushh commented 1 week ago

@0xCipherCoder can you check why tests are failing?

0xCipherCoder commented 1 week ago

@0xCipherCoder can you check why tests are failing?

Yes checking

0xCipherCoder commented 1 week ago

@heyAyushh Just checked on local tests are working fine.

Test-Result

But on CI getting type errors -

` 2 failing

1) Address Info Program
     initialize
       creates new address info:
   TypeError: addressProgram.methods.initialize is not a function
    at /home/runner/work/program-examples/program-examples/basics/account-data/poseidon/tests/account_data.ts:50:10
    at Generator.next (<anonymous>)
    at /home/runner/work/program-examples/program-examples/basics/account-data/poseidon/tests/account_data.ts:8:71
    at new Promise (<anonymous>)
    at __awaiter (tests/account_data.ts:4:12)
    at Context.<anonymous> (tests/account_data.ts:40:47)
    at processImmediate (node:internal/timers:483:21)

2) Address Info Program
     edit
       edits existing address info:
   TypeError: addressProgram.methods.edit is not a function`
0xCipherCoder commented 1 week ago

@0xCipherCoder can you check why tests are failing?

@heyAyushh I have fixed test cases that were failing due to type check. Please review.

0xCipherCoder commented 1 week ago

@heyAyushh Tests are passing but somehow still getting

Error: No such file or directory (os error 2) Error: Tests failed

0xCipherCoder commented 1 week ago

@heyAyushh Tests are passing but somehow still getting

Error: No such file or directory (os error 2) Error: Tests failed

@heyAyushh Apologies for the multiple reviews. Finally found the issue that program names were not matching from cargo.toml and generated program. I hope this should fix the above issue.