Skip to content

Commit 3066191

Browse files
committed
ran formatter
1 parent 6136bd3 commit 3066191

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

sdk/src/program-manager.ts

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -327,19 +327,18 @@ class ProgramManager {
327327

328328
if (typeof privateKey !== "undefined") {
329329
feeAddress = privateKey.address();
330-
}
331-
else {
330+
} else {
332331
feeAddress = this.account?.address();
333332
}
334333

335334
// Check to make sure the public balance is sufficient to cover the execution fee.
336335
if (
337336
tx.feeAmount() >
338-
await this.networkClient?.getProgramMappingValue(
337+
(await this.networkClient?.getProgramMappingValue(
339338
"credits.aleo",
340339
"account",
341340
feeAddress,
342-
)
341+
))
343342
) {
344343
throw "Public balance is insufficient to execute the transacation.";
345344
}
@@ -777,19 +776,18 @@ class ProgramManager {
777776

778777
if (typeof privateKey !== "undefined") {
779778
feeAddress = privateKey.address();
780-
}
781-
else {
779+
} else {
782780
feeAddress = this.account?.address();
783781
}
784782

785783
// Check to make sure the public balance is sufficient to cover the execution fee.
786784
if (
787785
tx.feeAmount() >
788-
await this.networkClient?.getProgramMappingValue(
786+
(await this.networkClient?.getProgramMappingValue(
789787
"credits.aleo",
790788
"account",
791789
feeAddress,
792-
)
790+
))
793791
) {
794792
throw "Public balance is insufficient to execute the transacation.";
795793
}
@@ -883,19 +881,18 @@ class ProgramManager {
883881

884882
if (typeof privateKey !== "undefined") {
885883
feeAddress = privateKey.address();
886-
}
887-
else {
884+
} else {
888885
feeAddress = this.account?.address();
889886
}
890887

891888
// Check to make sure the public balance is sufficient to cover the execution fee.
892889
if (
893890
tx.feeAmount() >
894-
await this.networkClient?.getProgramMappingValue(
891+
(await this.networkClient?.getProgramMappingValue(
895892
"credits.aleo",
896893
"account",
897894
feeAddress,
898-
)
895+
))
899896
) {
900897
throw "Public balance is insufficient to execute the transacation.";
901898
}
@@ -1263,19 +1260,18 @@ class ProgramManager {
12631260

12641261
if (typeof privateKey !== "undefined") {
12651262
feeAddress = privateKey.address();
1266-
}
1267-
else {
1263+
} else {
12681264
feeAddress = this.account?.address();
12691265
}
12701266

12711267
// Check to make sure the public balance is sufficient to cover the execution fee.
12721268
if (
12731269
tx.feeAmount() >
1274-
await this.networkClient?.getProgramMappingValue(
1270+
(await this.networkClient?.getProgramMappingValue(
12751271
"credits.aleo",
12761272
"account",
12771273
feeAddress,
1278-
)
1274+
))
12791275
) {
12801276
throw "Public balance is insufficient to execute the transacation.";
12811277
}
@@ -1917,11 +1913,11 @@ class ProgramManager {
19171913
// Check to make sure the public balance is sufficient to cover the execution fee.
19181914
if (
19191915
tx.feeAmount() >
1920-
await this.networkClient?.getProgramMappingValue(
1916+
(await this.networkClient?.getProgramMappingValue(
19211917
"credits.aleo",
19221918
"account",
19231919
this.account?.address(),
1924-
)
1920+
))
19251921
) {
19261922
throw "Public balance is insufficient to execute the transacation.";
19271923
}

0 commit comments

Comments
 (0)