hyperweb-io / hyperweb-io/ts-codegen
ReadOnlyClientInterface is not being created for CW721-base contract (Branch v0.16)
- Vorherrschende Sprache
- TypeScript
- Sterne
- 126
- Forks
- 31
- Ø Merge
- 19 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit contracts/cw721-base/schema/query_msg_for__empty.json aus cw-nfts v0.16.0 und führe TS-codegen aus, um das fehlende XxxReadOnlyClientInterface zu reproduzieren. Vergleiche die generierte Ausgabe mit dem Ergebnis einer manuellen Änderung des Schema-Titels in QueryMsg; die Aufgabe ist erledigt, wenn das Read-only-Interface ohne diese manuelle Änderung generiert wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100