File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ import { AleoNetworkClient } from "@provablehq/sdk/mainnet.js";
552
552
// Create a network client.
553
553
const networkClient = new AleoNetworkClient (" http://api.explorer.provable.com/v1" , undefined );
554
554
555
- const programVersion = networkClient .getProgramSource (" hello_hello.aleo" );
555
+ const programVersion = networkClient .getLatestProgramEdition (" hello_hello.aleo" );
556
556
assert .equal (programVersion, 1 );
557
557
` ` `
558
558
@@ -1588,7 +1588,7 @@ import { AleoNetworkClient } from "@provablehq/sdk/mainnet.js";
1588
1588
// Create a network client.
1589
1589
const networkClient = new AleoNetworkClient (" http://api.explorer.provable.com/v1" , undefined );
1590
1590
1591
- const programVersion = networkClient .getProgramSource (" hello_hello.aleo" );
1591
+ const programVersion = networkClient .getLatestProgramEdition (" hello_hello.aleo" );
1592
1592
assert .equal (programVersion, 1 );
1593
1593
` ` `
1594
1594
Original file line number Diff line number Diff line change @@ -942,7 +942,7 @@ class AleoNetworkClient {
942
942
* // Create a network client.
943
943
* const networkClient = new AleoNetworkClient("http://api.explorer.provable.com/v1", undefined);
944
944
*
945
- * const programVersion = networkClient.getProgramSource ("hello_hello.aleo");
945
+ * const programVersion = networkClient.getLatestProgramEdition ("hello_hello.aleo");
946
946
* assert.equal(programVersion, 1);
947
947
*/
948
948
async getLatestProgramEdition ( programId : string ) : Promise < number > {
You can’t perform that action at this time.
0 commit comments