klaytn / caver-js

Official caver-js repository
GNU Lesser General Public License v3.0
114 stars 75 forks source link

caver-js/types/packages/caver-rtm/src/index.d.ts getBlockNumber type mismatch #632

Closed kkeolmusae closed 2 years ago

kkeolmusae commented 2 years ago
klay_blockNumber(callback?: (error: Error, result: string) => void): Promise<string>

여기서 string 으로 리턴된다고 하는데 docs에서는 number 로 리턴한다고 나와있습니다. 혹시나 아니라면 죄송합니다.

(참고자료 https://docs.klaytn.com/dapp/sdk/caver-js/v1.4.1/api-references/caver.klay/block#getblocknumber)

jimni1222 commented 2 years ago

I fixed in https://github.com/klaytn/caver-js/pull/633. Please use english to communicate in this public caver-js repository. ;-;