CodeChain-io / CodeChain-io/codechain-sdk-js
Throw errors when blockNumber is invalid in ChainRpc
Abierto
discussion
rpc
- Lenguaje dominante
- TypeScript
- Estrellas
- 26
- Forks
- 14
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.