Skip to content

Commit 6481ccd

Browse files
Add fixes to program manager
1 parent 1007d8f commit 6481ccd

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,
@@ -1288,6 +1294,12 @@ class ProgramManager {
12881294
);
12891295
}
12901296

1297+
if (offlineQuery) {
1298+
console.log("Using offline query.");
1299+
} else {
1300+
console.log("Using online query.")
1301+
}
1302+
12911303
// Build an execution transaction
12921304
return await WasmProgramManager.buildTransferTransaction(
12931305
executionPrivateKey,
@@ -1554,6 +1566,7 @@ class ProgramManager {
15541566
privateFee,
15551567
inputs,
15561568
keySearchParams,
1569+
program,
15571570
...additionalOptions,
15581571
};
15591572

@@ -1694,6 +1707,7 @@ class ProgramManager {
16941707
privateFee,
16951708
inputs,
16961709
keySearchParams,
1710+
program,
16971711
...additionalOptions,
16981712
};
16991713

@@ -1824,6 +1838,7 @@ class ProgramManager {
18241838
privateFee,
18251839
inputs,
18261840
keySearchParams,
1841+
program,
18271842
...additionalOptions,
18281843
};
18291844

@@ -1951,6 +1966,7 @@ class ProgramManager {
19511966
privateFee,
19521967
inputs,
19531968
keySearchParams,
1969+
program,
19541970
...additionalOptions,
19551971
};
19561972

@@ -2069,6 +2085,7 @@ class ProgramManager {
20692085
verifierUri: CREDITS_PROGRAM_KEYS.set_validator_state.verifier,
20702086
cacheKey: "credits.aleo/set_validator_state",
20712087
}),
2088+
program = this.creditsProgram(),
20722089
...additionalOptions
20732090
} = options;
20742091

@@ -2079,6 +2096,7 @@ class ProgramManager {
20792096
privateFee,
20802097
inputs,
20812098
keySearchParams,
2099+
program,
20822100
...additionalOptions,
20832101
};
20842102

0 commit comments

Comments
 (0)