hyperweb-io / hyperweb-io/ts-codegen
ReadOnlyClientInterface is not being created for CW721-base contract (Branch v0.16)
- Lingua principale
- TypeScript
- Stelle
- 126
- Fork
- 31
- Merge medio
- 19m
- PR unite (30g)
- 2
Descrizione
When trying to create the client for the cw721-base contract (branch v0.16!) the XxxReadOnlyInterface is not created.
Looking at the [schema file](https://github.com/CosmWasm/cw-nfts/blob/v0.16.0/contracts/cw721-base/schema/query_msg_for__empty.json)
`{
"$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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start with contracts/cw721-base/schema/query_msg_for__empty.json from cw-nfts v0.16.0 and run TS-codegen to reproduce the missing XxxReadOnlyClientInterface. Compare the generated output with the result from manually changing the schema title to QueryMsg; done means the read-only interface is generated without that manual change.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100