Describe the bug
If I define a field named type and try to generate the CIDL the generator throws the error:
LOG Parsing CIDL...
ERROR unmarshal error the data type type is not a primitive, extended, user-defined or imported type.
To Reproduce
- Copy and paste your CIDL:
types:
Test:
fields:
- name: type
type: u32
- If applicable, copy and paste your business logic
N/A
- If applicable, copy and paste in what context you are calling the client library functions
N/A
- If applicable, copy and paste the generated code
N/A
Expected behavior
To generate the code
Screenshots
N/A
Platform version:
- CLI Version [e.g. v0.1.0]
- GenService Version [e.g. v0.1.0]
Extension (mark with an X the extension):
- Solana Native [x]
- Solana Anchor [x]
Additional context
N/A
Describe the bug
If I define a field named
typeand try to generate the CIDL the generator throws the error:To Reproduce
N/A
N/A
N/A
Expected behavior
To generate the code
Screenshots
N/A
Platform version:
Extension (mark with an X the extension):
Additional context
N/A