Faucet confirmation hardcodes "500 test USDC" instead of using the minted amount

オープン 初心者向け
#141 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript

調査の方向性

web/app/api/faucet/route.ts から始めてください。そこで MINT_AMOUNT が定義され、{ ok, hash } のレスポンスが組み立てられています。次に web/components/FaucetButton.tsx を開き、ハードコードされた「500 test USDC」の文言を探してください。route からミント量を人が読める単位で返し、その値をボタンに表示してください。MINT_AMOUNT だけを変更すると確認表示も更新されれば完了です。route と同じファイルに関わるため、編集前に #93 と調整してください。

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

説明

bug difficulty: beginner good first issue help wanted web

Difficulty: Beginner

Problem

FaucetButton always shows "Sent 500 test USDC", while the mint amount is a constant in web/app/api/faucet/route.ts (MINT_AMOUNT). The API response only contains { ok, hash }. If the constant changes, the UI becomes wrong.

Why it matters

Two places must be edited for one value, and the message can silently lie.

Scope of work

Return the minted amount (human units) in the faucet response and display that value in FaucetButton. Keep the same wording otherwise.

Expected outcome

The confirmation always matches what was actually minted.

Acceptance criteria

  • The API response includes the minted amount.
  • FaucetButton renders the amount from the response.
  • Changing MINT_AMOUNT updates the message with no UI change.

Relevant files

  • web/app/api/faucet/route.ts, web/components/FaucetButton.tsx

Dependencies

Coordinate with #93, which also edits the faucet route.

Maintainer discussion needed?

No.

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

環境構築

はじめの一歩

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

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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