Closed augustbleeds closed 11 months ago
I guess current workaround is to do execExtendsQuery
: false
so the inheritance doesn't occur -- but then you have to work with two clients
You guys can use this tools, it supports queryPrefixOnConflict
option to solve that: https://github.com/oraichain/cosmwasm-tools/blob/main/src/cmd/gents.ts#L32
Found this when trying to generate types for the cw3-flex-multisig contract:
There is both a "Vote" enum value for the QueryMsg and Execute Msg (https://github.com/CosmWasm/cw-plus/blob/main/contracts/cw3-flex-multisig/src/msg.rs#L32) so when ts-codegen generates the client class, the "vote" execute method it shares the same name as "vote" query method.
Perhaps we should add an optional field in codegen.js to prepend an "exec" or "query" to associated methods?
I can open a PR if that sounds good