Skip to content

Commit d4a917e

Browse files
Add fixes to program manager
1 parent 8057464 commit d4a917e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

sdk/src/program-manager.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,12 @@ class ProgramManager {
619619
}
620620
}
621621

622+
if (offlineQuery) {
623+
console.log("Using offline query.");
624+
} else {
625+
console.log("Not using offline query.");
626+
}
627+
622628
// Build an execution transaction
623629
return await WasmProgramManager.buildExecutionTransaction(
624630
executionPrivateKey,
@@ -1545,6 +1551,12 @@ class ProgramManager {
15451551
);
15461552
}
15471553

1554+
if (offlineQuery) {
1555+
console.log("Using offline query.");
1556+
} else {
1557+
console.log("Using online query.")
1558+
}
1559+
15481560
// Build an execution transaction
15491561
return await WasmProgramManager.buildTransferTransaction(
15501562
executionPrivateKey,
@@ -1811,6 +1823,7 @@ class ProgramManager {
18111823
privateFee,
18121824
inputs,
18131825
keySearchParams,
1826+
program,
18141827
...additionalOptions,
18151828
};
18161829

@@ -1951,6 +1964,7 @@ class ProgramManager {
19511964
privateFee,
19521965
inputs,
19531966
keySearchParams,
1967+
program,
19541968
...additionalOptions,
19551969
};
19561970

@@ -2081,6 +2095,7 @@ class ProgramManager {
20812095
privateFee,
20822096
inputs,
20832097
keySearchParams,
2098+
program,
20842099
...additionalOptions,
20852100
};
20862101

@@ -2208,6 +2223,7 @@ class ProgramManager {
22082223
privateFee,
22092224
inputs,
22102225
keySearchParams,
2226+
program,
22112227
...additionalOptions,
22122228
};
22132229

@@ -2326,6 +2342,7 @@ class ProgramManager {
23262342
verifierUri: CREDITS_PROGRAM_KEYS.set_validator_state.verifier,
23272343
cacheKey: "credits.aleo/set_validator_state",
23282344
}),
2345+
program = this.creditsProgram(),
23292346
...additionalOptions
23302347
} = options;
23312348

@@ -2336,6 +2353,7 @@ class ProgramManager {
23362353
privateFee,
23372354
inputs,
23382355
keySearchParams,
2356+
program,
23392357
...additionalOptions,
23402358
};
23412359

0 commit comments

Comments
 (0)