ElementsProject / ElementsProject/elements
rawissueasset doesn't allow asset_amount of zero while issueasset does
- 主要言語
- C++
- スター
- 1.2k
- フォーク
- 416
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 15
説明
elements 0.18.1.9
rawissueasset doesn't allow asset_amount of zero:
```
Invalid parameter, asset_amount must be positive
```
Whereas this is ok using `issueasset`. If you use `issueasset 0 1` you get zero asset amount and 1 reissuance token and then you can effectively reissue the asset into existence.
Would be good if you could do the same with `rawissueasset` for cases where people want to issue an asset and want to know the asset id but do not know the amount they need yet.
コントリビューションガイド
調査の方向性
まず rawissueasset と issueasset のコマンドまたは RPC のエントリーポイントを見つけ、issue の例を使って差異を再現します。アセット量がゼロの場合と、1 つの reissuance トークンの場合です。rawissueasset が asset_amount をどのように検証しているかを確認します。ゼロ量のケースが一貫して受け入れられ、返されるアセット ID と reissuance の動作が維持されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- blockchain, cli
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100