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";
552552// Create a network client.
553553const 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" );
556556assert .equal (programVersion, 1 );
557557` ` `
558558
@@ -1588,7 +1588,7 @@ import { AleoNetworkClient } from "@provablehq/sdk/mainnet.js";
15881588// Create a network client.
15891589const 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" );
15921592assert .equal (programVersion, 1 );
15931593` ` `
15941594
Original file line number Diff line number Diff 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 > {
You can’t perform that action at this time.
0 commit comments