CodeChain-io / CodeChain-io/codechain-sdk-js
Change all of the SDK functions to arrow function
未关闭
enhancement
good first issue
- 主要语言
- TypeScript
- 星标
- 26
- 派生
- 14
- PR 合并指标
- 30 天内没有已合并 PR
描述
Currently, the below example doesn't work
```
let sdk = new SDK(...);
let { getBlock, ... } = sdk.rpc.chain;
getBlock("0x123..").then(...)
```
Because of the function context.
Changing all the functions to the arrow function is one of the solutions.
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。