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

Change all of the SDK functions to arrow function

Abierto
#70 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement good first issue
Lenguaje dominante
TypeScript
Estrellas
26
Forks
14
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.