Skip to content

When query message name is the same as execute message name there are conflicts. #140

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

Closed
Rcontre360 opened this issue Apr 18, 2024 · 1 comment

Comments

@Rcontre360
Copy link

When query message name is the same as execute message name there are conflicts. Example, create a contract where you have a query message and execute message with the same name. When the client is generated with this it will have typescript issues because the return values of an execution and a query are different.

@pyramation
Copy link
Collaborator

this is a known issue and there is a workaround, in the options you can set:

https://github.com/CosmWasm/ts-codegen/tree/main?tab=readme-ov-file#client-options

client.execExtendsQuery should be false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants