We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478b156 commit beba622Copy full SHA for beba622
sdk/src/program-manager.ts
@@ -720,13 +720,12 @@ class ProgramManager {
720
executionPrivateKey = this.account.privateKey();
721
feeAddress = this.account?.address();
722
}
723
- else {
724
- feeAddress = Address.from_private_key(privateKey);
725
- }
726
-
727
- if (typeof executionPrivateKey === "undefined") {
+ else if (typeof executionPrivateKey === "undefined") {
728
throw "No private key provided and no private key set in the ProgramManager";
729
+ else {
+ feeAddress = Address.from_private_key(executionPrivateKey);
+ }
730
731
// Get the proving and verifying keys from the key provider
732
let feeKeys;
0 commit comments