Skip to content

Commit c243def

Browse files
fix: typescript fix getNetwork() return type
1 parent 8f4c24a commit c243def

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/classes/IExecNetworkModule.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ current IExecConfig
6464

6565
### getNetwork
6666

67-
**getNetwork**(): `Promise`<{ `chainId`: `number` ; `isNative`: `boolean` }\>
67+
**getNetwork**(): `Promise`<{ `chainId`: `string` ; `isNative`: `boolean` }\>
6868

6969
get info about the current iExec network
7070

@@ -78,7 +78,7 @@ console.log(`working on chain ${chainId}, using native token: ${isNative}`);
7878

7979
#### Returns
8080

81-
`Promise`<{ `chainId`: `number` ; `isNative`: `boolean` }\>
81+
`Promise`<{ `chainId`: `string` ; `isNative`: `boolean` }\>
8282

8383
___
8484

src/lib/IExecNetworkModule.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class IExecNetworkModule extends IExecModule {
1919
* console.log(`working on chain ${chainId}, using native token: ${isNative}`);
2020
* ```
2121
*/
22-
getNetwork(): Promise<{ chainId: number; isNative: boolean }>;
22+
getNetwork(): Promise<{ chainId: string; isNative: boolean }>;
2323
/**
2424
* Create an IExecNetworkModule instance using an IExecConfig instance
2525
*/

0 commit comments

Comments
 (0)