Closed asktree closed 7 months ago
Im not sure I agree with it but Ive found that this is intentional
@paul-schaaf yeah seems that the change in casing is intentional, but is the discrepancy?
Using anchor 0.22 I seem to no longer get errors due to this discrepancy
the discrepancy still exists for me on 0.22.1
and Ive found out that there should be no discrepancy
reopening this because we are reverting #1609 (#1604) because #1609 causes const IDL
to not have the <MyProgram>
type. Not clear yet whether we just leave it like this in the long term
I am encountering:
IdlError: Type not found: {"type":{"defined":"Player"}}
at Function.fieldLayout (/home/shauh/anch/node_modules/@coral-xyz/anchor/src/coder/borsh/idl.ts:100:19)
This does not seem to be just a type error.
Getting this too
on anchor 0.20.1
left: idl JSON output right: idl typescript output
what i expected i expected these to be the same
what happened instead they have different casing and yes this does seem to cause errors. as a result I have to do this:
sorry if this is a known issue. my code is private but if anyone wants to repro i can add you and let you poke around.