CodeChain-io / CodeChain-io/codechain-sdk-js

Throw errors when blockNumber is invalid in ChainRpc

オープン
#179 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
discussion rpc
主要言語
TypeScript
スター
26
フォーク
14
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently, `getBalance` and `getNonce` are able to resolve `null` when no such block exists. (the given blockNumber is too big)
For TypeScript users, they should put the type guard for every `getBalance` and `getNonce`.

The problem is, a type guard is useless if the users use a valid block number only.

Methods using blockNumber parameter
- getBalance
- getNonce
- getRegularKey
- getRegularKeyOwner
- getAsset
- getAssetScheme*
- getBlock
- getBlockHash
- isAssetSpent

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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