Skip to content

Commit 0b56b59

Browse files
Add fixes to program manager
1 parent d6cd94e commit 0b56b59

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
@@ -584,6 +584,12 @@ class ProgramManager {
584584
}
585585
}
586586

587+
if (offlineQuery) {
588+
console.log("Using offline query.");
589+
} else {
590+
console.log("Not using offline query.");
591+
}
592+
587593
// Build an execution transaction
588594
return await WasmProgramManager.buildExecutionTransaction(
589595
executionPrivateKey,
@@ -1382,6 +1388,12 @@ class ProgramManager {
13821388
);
13831389
}
13841390

1391+
if (offlineQuery) {
1392+
console.log("Using offline query.");
1393+
} else {
1394+
console.log("Using online query.")
1395+
}
1396+
13851397
// Build an execution transaction
13861398
return await WasmProgramManager.buildTransferTransaction(
13871399
executionPrivateKey,
@@ -1648,6 +1660,7 @@ class ProgramManager {
16481660
privateFee,
16491661
inputs,
16501662
keySearchParams,
1663+
program,
16511664
...additionalOptions,
16521665
};
16531666

@@ -1788,6 +1801,7 @@ class ProgramManager {
17881801
privateFee,
17891802
inputs,
17901803
keySearchParams,
1804+
program,
17911805
...additionalOptions,
17921806
};
17931807

@@ -1918,6 +1932,7 @@ class ProgramManager {
19181932
privateFee,
19191933
inputs,
19201934
keySearchParams,
1935+
program,
19211936
...additionalOptions,
19221937
};
19231938

@@ -2045,6 +2060,7 @@ class ProgramManager {
20452060
privateFee,
20462061
inputs,
20472062
keySearchParams,
2063+
program,
20482064
...additionalOptions,
20492065
};
20502066

@@ -2163,6 +2179,7 @@ class ProgramManager {
21632179
verifierUri: CREDITS_PROGRAM_KEYS.set_validator_state.verifier,
21642180
cacheKey: "credits.aleo/set_validator_state",
21652181
}),
2182+
program = this.creditsProgram(),
21662183
...additionalOptions
21672184
} = options;
21682185

@@ -2173,6 +2190,7 @@ class ProgramManager {
21732190
privateFee,
21742191
inputs,
21752192
keySearchParams,
2193+
program,
21762194
...additionalOptions,
21772195
};
21782196

0 commit comments

Comments
 (0)