0xMiden / 0xMiden/faucet

Fetch the fee faucet id from the latest stored block header instead of the genesis

未關閉 適合新手
#287 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Rust
星號
10
分支
12
平均合併
1 天 15 小時
30 天內合併 PR
9

描述

Originally discussed in [this comment](https://github.com/0xMiden/faucet/pull/262#discussion_r3769759885).

After https://github.com/0xMiden/rust-sdk/pull/2397 was merged, we should update the [`fetch_fee_faucet_id`](https://github.com/0xMiden/faucet/blob/5bc853758e0468176a9b9edb5997b5cb1d93e021/crates/faucet/src/lib.rs#L978) function so that it calls `Client::get_latest_block_header` instead of `Client::get_block_header_by_number`.

貢獻指南

開啟貢獻指南

研究方向

函式 `fetch_fee_faucet_id` 位於 crates/faucet/src/lib.rs 的第 978 行。查看目前對 `Client::get_block_header_by_number` 的呼叫,並將其替換為 `Client::get_latest_block_header`。查看 rust-sdk 的 PR #2397 以了解更改的背景。執行 faucet 測試以確保更新正常運作。

由索引模型根據 Issue 內容生成。

評估

領域
backend
Issue 類型
重構
難度
2/5
預估耗時
1-3 小時
活躍度
活躍
描述清晰度
描述清楚
新手友好度
75/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。