-
Notifications
You must be signed in to change notification settings - Fork 31
question: TypeError: Cannot create property 'title' on boolean 'true' #139
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
Comments
based on these types https://github.com/ComposableFi/composable-vm/blob/main/schema/cvm-runtime.json |
found root cause
so it cannot type object with type |
replaced with binary for now (XCM serde is SCALE). observation that python model generator from schema fails on same JSON schema. either shemars are buggy, or serde_cw_value gives buggy schema, or ts/py generators have bug, or have serde_cw_value as type in schema is useless |
so does it work now? sounds like a Rust issue? Can you provide a schema? |
@pyramation I does not look like exactly Rust issue. Let me explain. I have cosmwasm contract with kind of valid JSON schema. I generate json file with schema out of it. But ts generator fails to generate typescript code. As soon as it can be agreed that JSON schema here is valid https://github.com/ComposableFi/composable-vm/blob/c38dd934eff95f5ca73faa5e1a77bd785a6f1562/schema/cvm-runtime.json#L950 , ts gen should not fail. |
ahaha. right https://github.com/ComposableFi/composable-vm/blob/c38dd934eff95f5ca73faa5e1a77bd785a6f1562/schema/cvm-runtime.json#L2250 . it is not valid. fun |
I did not had bug, just got it now (tried old and latest version of generator):
I updated version of CW from 1.2.X to 1.5.X. Also added some more msgs into contract.
The text was updated successfully, but these errors were encountered: