@@ -327,19 +327,18 @@ class ProgramManager {
327
327
328
328
if ( typeof privateKey !== "undefined" ) {
329
329
feeAddress = privateKey . address ( ) ;
330
- }
331
- else {
330
+ } else {
332
331
feeAddress = this . account ?. address ( ) ;
333
332
}
334
333
335
334
// Check to make sure the public balance is sufficient to cover the execution fee.
336
335
if (
337
336
tx . feeAmount ( ) >
338
- await this . networkClient ?. getProgramMappingValue (
337
+ ( await this . networkClient ?. getProgramMappingValue (
339
338
"credits.aleo" ,
340
339
"account" ,
341
340
feeAddress ,
342
- )
341
+ ) )
343
342
) {
344
343
throw "Public balance is insufficient to execute the transacation." ;
345
344
}
@@ -777,19 +776,18 @@ class ProgramManager {
777
776
778
777
if ( typeof privateKey !== "undefined" ) {
779
778
feeAddress = privateKey . address ( ) ;
780
- }
781
- else {
779
+ } else {
782
780
feeAddress = this . account ?. address ( ) ;
783
781
}
784
782
785
783
// Check to make sure the public balance is sufficient to cover the execution fee.
786
784
if (
787
785
tx . feeAmount ( ) >
788
- await this . networkClient ?. getProgramMappingValue (
786
+ ( await this . networkClient ?. getProgramMappingValue (
789
787
"credits.aleo" ,
790
788
"account" ,
791
789
feeAddress ,
792
- )
790
+ ) )
793
791
) {
794
792
throw "Public balance is insufficient to execute the transacation." ;
795
793
}
@@ -883,19 +881,18 @@ class ProgramManager {
883
881
884
882
if ( typeof privateKey !== "undefined" ) {
885
883
feeAddress = privateKey . address ( ) ;
886
- }
887
- else {
884
+ } else {
888
885
feeAddress = this . account ?. address ( ) ;
889
886
}
890
887
891
888
// Check to make sure the public balance is sufficient to cover the execution fee.
892
889
if (
893
890
tx . feeAmount ( ) >
894
- await this . networkClient ?. getProgramMappingValue (
891
+ ( await this . networkClient ?. getProgramMappingValue (
895
892
"credits.aleo" ,
896
893
"account" ,
897
894
feeAddress ,
898
- )
895
+ ) )
899
896
) {
900
897
throw "Public balance is insufficient to execute the transacation." ;
901
898
}
@@ -1263,19 +1260,18 @@ class ProgramManager {
1263
1260
1264
1261
if ( typeof privateKey !== "undefined" ) {
1265
1262
feeAddress = privateKey . address ( ) ;
1266
- }
1267
- else {
1263
+ } else {
1268
1264
feeAddress = this . account ?. address ( ) ;
1269
1265
}
1270
1266
1271
1267
// Check to make sure the public balance is sufficient to cover the execution fee.
1272
1268
if (
1273
1269
tx . feeAmount ( ) >
1274
- await this . networkClient ?. getProgramMappingValue (
1270
+ ( await this . networkClient ?. getProgramMappingValue (
1275
1271
"credits.aleo" ,
1276
1272
"account" ,
1277
1273
feeAddress ,
1278
- )
1274
+ ) )
1279
1275
) {
1280
1276
throw "Public balance is insufficient to execute the transacation." ;
1281
1277
}
@@ -1917,11 +1913,11 @@ class ProgramManager {
1917
1913
// Check to make sure the public balance is sufficient to cover the execution fee.
1918
1914
if (
1919
1915
tx . feeAmount ( ) >
1920
- await this . networkClient ?. getProgramMappingValue (
1916
+ ( await this . networkClient ?. getProgramMappingValue (
1921
1917
"credits.aleo" ,
1922
1918
"account" ,
1923
1919
this . account ?. address ( ) ,
1924
- )
1920
+ ) )
1925
1921
) {
1926
1922
throw "Public balance is insufficient to execute the transacation." ;
1927
1923
}
0 commit comments