Failed to generate types for contract ABIs: Failed to generate types for contract ABI: Conversion from 'ethereum' to 'AssemblyScript' for source type 'MyLibrary.MyEnum' is not supported

Hello. The codegen command is failing with this error. I’ve seen in the past that some people downgrade their version of the CLI to overcome this issue. What is the current state of this error?

1 Like

The weird thing is that I am indeed getting a MyLibrary.ts file under ./src like it was indeed generating the types. But Im afraid is missing something that will break later…

1 Like

I just checked such file and its indeed missing the enum that failed. Is there something wrong with my enum?:

“enum PercentApproved {
none,
quarter,
half,
threequarter,
all
}”

1 Like