Gold drop dialog silently clamps an amount past its cap

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

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

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

評価

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

調査の方向性

#4886 の前後で追加された、地面に金を落とすダイアログとドラフトを取り消す動作を見つけてください。issue にはファイル名もテスト名も記載されていません。ドラフトの金額処理を読み、所持残高を超える金額を対象とした pinning テストを追加してください。落とすドラフトの金額が残高で許可される額に制限され、テストでそれが確認できたら完了です。

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

説明

Follow-up noted during the review of #4886.

The ground-drop gold dialog has the same silent-clamp shape the withdraw
draft had before that fix: typing an amount past what the carried balance
actually allows silently proceeds with a clamped value instead of capping
the draft the way the withdraw row now does.

Scope notes:

  • The server already clamps a ground gold drop, so no bad amount can
    reach the wire; the defect is display-side only.
  • It predates the gold-cap work; it was left out of #4886 on purpose so
    that fix stayed narrow.

Wanted: the drop draft gets the same treatment as the withdraw draft
(cap to the room the balance leaves, honestly) — a small client-only
change with a pinning test.

主要言語
Go
スター
97
フォーク
61
平均マージ
3時間 59分
マージ済み PR(30日)
966

環境構築

はじめの一歩

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

opensro-dev/opensro のほかの issue

opensro-dev/opensro の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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