You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is an inconsistency with the IDL generation in target/idl/*.json and target/types/*.ts which breaks implementations that rely on the IDL from the ts version.
In my opinion, the correct fix would to have the Account Name also capitalized in IDL and type in ``target/types/*.ts. This would additionally require an update to the Program` interface, where currently camelCase is expected:
Current:
program.account.didAccount
New:
program.account.DidAccount
I consider this quite the major inconsistency and projects relying directly on the generated *.ts are likely to run into problems when not using the JSON IDL directly.
The text was updated successfully, but these errors were encountered:
Hello,
there is an inconsistency with the IDL generation in
target/idl/*.json
andtarget/types/*.ts
which breaks implementations that rely on the IDL from thets
version.We have the following account in our program:
In
target/idl/*.json
it generates toIn
target/types/*.ts
it generates toIn my opinion, the correct fix would to have the Account Name also capitalized in IDL and type in ``target/types/*.ts
. This would additionally require an update to the
Program` interface, where currently camelCase is expected:Current:
New:
I consider this quite the major inconsistency and projects relying directly on the generated
*.ts
are likely to run into problems when not using the JSON IDL directly.The text was updated successfully, but these errors were encountered: