Skip to content

Commit

Permalink
Some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyi2811 committed Apr 30, 2021
1 parent 49bfd8b commit 1acabc1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/jellyfish-api-core/src/category/net.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class Net {
*
* @return {Promise<string>}
*/
async getConnectionCount (): Promise<string> {
async getConnectionCount (): Promise<number> {
return await this.client.call('getconnectioncount', [], 'number')
}
}
2 changes: 1 addition & 1 deletion website/docs/jellyfish/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ Returns the number of connections to other nodes.

```ts title="client.net.getConnectionCount()"
interface net {
getConnectionCount (): Promise<string>
getConnectionCount (): Promise<number>
}
```
1 change: 1 addition & 0 deletions website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
items: [
'jellyfish/api/blockchain',
'jellyfish/api/mining',
'jellyfish/api/net',
'jellyfish/api/rawtx',
'jellyfish/api/wallet',
'jellyfish/api/poolpair',
Expand Down

0 comments on commit 1acabc1

Please sign in to comment.