Skip to content

Commit a63418e

Browse files
Fix create-leo-app e2e tests
1 parent a9c8da1 commit a63418e

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

create-leo-app/template-node-ts/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function localProgramExecution(program, programName, aleoFunction, inputs)
5252
console.log("hello_hello/hello executed - result:", executionResponse.getOutputs());
5353

5454
// Verify the execution using the verifying key that was generated earlier.
55-
if (programManager.verifyExecution(executionResponse, 9_000_000))) {
55+
if (programManager.verifyExecution(executionResponse, 9_000_000)) {
5656
console.log("hello_hello/hello execution verified!");
5757
} else {
5858
throw("Execution failed verification!");

create-leo-app/template-node/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function localProgramExecution(program, programName, aleoFunction, inputs)
4646
console.log("hello_hello/hello executed - result:", executionResponse.getOutputs());
4747

4848
// Verify the execution using the verifying key that was generated earlier.
49-
if (programManager.verifyExecution(executionResponse, 9_000_000))) {
49+
if (programManager.verifyExecution(executionResponse, 9_000_000)) {
5050
console.log("hello_hello/hello execution verified!");
5151
} else {
5252
throw("Execution failed verification!");

e2e/mainnet/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ async function localProgramExecution(program, programName, aleoFunction, inputs)
4646
console.log("hello_hello/hello executed - result:", executionResponse.getOutputs());
4747

4848
// Verify the execution using the verifying key that was generated earlier.
49-
if (programManager.(executionResponse)) {
49+
const blockHeight = 9_000_000;
50+
if (programManager.verifyExecution(executionResponse, blockHeight)) {
5051
console.log("hello_hello/hello execution verified!");
5152
} else {
5253
throw("Execution failed verification!");

e2e/testnet/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function localProgramExecution(program, programName, aleoFunction, inputs)
4646
console.log("hello_hello/hello executed - result:", executionResponse.getOutputs());
4747

4848
// Verify the execution using the verifying key that was generated earlier.
49-
if (programManager.verifyExecution(executionResponse, 9_000_000))) {
49+
if (programManager.verifyExecution(executionResponse, 9_000_000)) {
5050
console.log("hello_hello/hello execution verified!");
5151
} else {
5252
throw("Execution failed verification!");

0 commit comments

Comments
 (0)