Skip to content

Commit beba622

Browse files
committed
fixed typo
1 parent 478b156 commit beba622

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sdk/src/program-manager.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -720,13 +720,12 @@ class ProgramManager {
720720
executionPrivateKey = this.account.privateKey();
721721
feeAddress = this.account?.address();
722722
}
723-
else {
724-
feeAddress = Address.from_private_key(privateKey);
725-
}
726-
727-
if (typeof executionPrivateKey === "undefined") {
723+
else if (typeof executionPrivateKey === "undefined") {
728724
throw "No private key provided and no private key set in the ProgramManager";
729725
}
726+
else {
727+
feeAddress = Address.from_private_key(executionPrivateKey);
728+
}
730729

731730
// Get the proving and verifying keys from the key provider
732731
let feeKeys;

0 commit comments

Comments
 (0)