-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Anchor fails to create expected IDL name #3353
Comments
Reason explained here: anchor/ts/packages/anchor/src/workspace.ts Lines 27 to 42 in 8dca0d6
I guess we could add an edge case to check both versions, but generally speaking, you'd have much better time if you avoid using numbers in your identifiers (program name, function name, account name...) because case conversion cross-language can be inconsistent or lossy. |
|
If you have a program with a name like
program_v1
, the resulting IDL will be namedprogram_v1.json
yet the Mocha tests will expectprogram_v_1.json
.Tests should use the same name resolution as Anchor in generating the IDL.
Reproduced:
The text was updated successfully, but these errors were encountered: