Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Incorrect type for message in FireFlyTokenTransferRequest

オープン
#63 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go, typescript
領域
api

調査の方向性

pkg/core/tokentransfer.go から始め、TokenTransfer の Message フィールドを、issue に記載されている TokenTransferInput 型および MessageInOut 型と比較します。次に、TypeScript SDK 内の生成された requestBody 宣言を追跡し、この不一致が Swagger ジェネレーターに起因するものかどうかを確認します。FireFlyTokenTransferRequest のメッセージ型が文字列ではなく API 入力オブジェクトと一致すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
16
フォーク
9
平均マージ
16分
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

hyperledger-firefly/sdk-nodejs のほかの issue

hyperledger-firefly/sdk-nodejs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。