CosmWasm / ts-codegen

Convert your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.
https://cosmology.zone/products/ts-codegen
Apache License 2.0
116 stars 27 forks source link

ReadOnlyClientInterface is not being created for CW721-base contract (Branch v0.16) #120

Open tot-truong opened 1 year ago

tot-truong commented 1 year ago

When trying to create the client for the cw721-base contract (branch v0.16!) the XxxReadOnlyInterface is not created.

Looking at the schema file

{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "QueryMsg_for_Empty", "oneOf": [ { "description": "Return the owner of the given token, error if token does not exist Return type: OwnerOfResponse", [....]

I noticed that when manually changing the title to (removing the "_for_Empty" part)

"title": "QueryMsg",

and running TS-codegen again also the XxxReadOnlyClientInterface is created properly.

pyramation commented 11 months ago

did you end up resolving this?