CodeChain-io / CodeChain-io/codechain-sdk-js
Throw errors when blockNumber is invalid in ChainRpc
オープン
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 はまだ評価されていません。