Skip to content

Commit 235e633

Browse files
Rebuild SDK docs
1 parent 640c961 commit 235e633

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api_reference/sdk-src_network-client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ import { AleoNetworkClient } from "@provablehq/sdk/mainnet.js";
552552
// Create a network client.
553553
const networkClient = new AleoNetworkClient("http://api.explorer.provable.com/v1", undefined);
554554

555-
const programVersion = networkClient.getProgramSource("hello_hello.aleo");
555+
const programVersion = networkClient.getLatestProgramEdition("hello_hello.aleo");
556556
assert.equal(programVersion, 1);
557557
```
558558
@@ -1588,7 +1588,7 @@ import { AleoNetworkClient } from "@provablehq/sdk/mainnet.js";
15881588
// Create a network client.
15891589
const networkClient = new AleoNetworkClient("http://api.explorer.provable.com/v1", undefined);
15901590

1591-
const programVersion = networkClient.getProgramSource("hello_hello.aleo");
1591+
const programVersion = networkClient.getLatestProgramEdition("hello_hello.aleo");
15921592
assert.equal(programVersion, 1);
15931593
```
15941594

sdk/src/network-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ class AleoNetworkClient {
942942
* // Create a network client.
943943
* const networkClient = new AleoNetworkClient("http://api.explorer.provable.com/v1", undefined);
944944
*
945-
* const programVersion = networkClient.getProgramSource("hello_hello.aleo");
945+
* const programVersion = networkClient.getLatestProgramEdition("hello_hello.aleo");
946946
* assert.equal(programVersion, 1);
947947
*/
948948
async getLatestProgramEdition(programId: string): Promise<number> {

0 commit comments

Comments
 (0)