Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Incorrect type for message in FireFlyTokenTransferRequest

Aperta
#63 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go, typescript
Ambito
api

Direzione di ricerca

Inizia da pkg/core/tokentransfer.go e confronta il campo Message di TokenTransfer con i tipi TokenTransferInput e MessageInOut descritti nell’issue. Poi segui la dichiarazione generata requestBody nell’SDK TypeScript per determinare se la discrepanza deriva dal generatore Swagger. Il lavoro è completato quando il tipo di messaggio FireFlyTokenTransferRequest corrisponde all’oggetto di input dell’API anziché a una stringa.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

It seems the type for message within FireFlyTokenTransferRequest is incorrect. Instead of accepting a message object, it is expecting a string.

    requestBody: {
      content: {
        "application/json": {
          ....
          ....
          /**
           * Format: uuid
           * @description The UUID of a message that has been correlated with this transfer using the data field of the transfer in a compatible token connector
           */
          message?: string;
          ....
          ....
        };
      };
    };

https://github.com/hyperledger/firefly/blob/main/pkg/core/tokentransfer.go#L29-L55
This may be a limitation of the swagger generator, because Message is type fftypes.UUID on TokenTransfer, but the actual input for that api is TokenTransferInput, which wraps TokenTransfer and also has a Message field of type MessageInOut.

Lingua principale
TypeScript
Stelle
16
Fork
9
Merge medio
16m
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hyperledger-firefly/sdk-nodejs

Tutte le issue di hyperledger-firefly/sdk-nodejs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.