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

Change all of the SDK functions to arrow function

Open
#70 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
TypeScript
Stars
26
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.