7 评论 (7 评论)0 反应 (0 反应)0 负责人 (0 负责人)TypeScript43,186 star (43,186 star)1,370 fork (1,370 fork)batch import
docsgood first issue
描述
Summary
Reference
- We could rename these to
B512 from Bits512 to better align with the wider ecosystem.
- We're missing documentation on how to form a B512, from two B256.
- I think the example of just using the wallet public key could be changed to show how to form this with two b256.
- We could also improve the Sway example with a more complex use-case, rather than just echoing out the response.
- The Rust SDK are using the B512::from function (here) and I was unclear how to imitate this with the TS SDK. (this could be a feature request)
- 议题类型
- documentation
- 研究方向
- First, review the current documentation for Bits512 at https://docs.fuel.network/docs/fuels ts/types/bits512/. Examine the Rust SDK example at https://github.com/FuelLabs/fuels rs/blob/84266d27a9640b1f6c7b2d2c81186ff6b024b8ff/e2e/sway/types/contracts/b512/src/main.sw to understand how B512 is constructed from two B256. Then update the TS SDK documentation to rename Bits512 to B512, add a new example showing construction from two B256, and improve existing examples. Coordinate with maintainers in the issue comments to confirm the desired changes.