Skip to content

Commit f305c0a

Browse files
committed
added comments for method in program-manager.ts
1 parent 845cbf9 commit f305c0a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sdk/src/program-manager.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ class ProgramManager {
353353
);
354354
}
355355

356+
// Check if the account has sufficient credits to pay for the transaction
356357
this.checkFee(feeAddress.to_string(), tx.feeAmount());
357358

358359
return await this.networkClient.submitTransaction(tx);
@@ -570,6 +571,7 @@ class ProgramManager {
570571
);
571572
}
572573

574+
// Check if the account has sufficient credits to pay for the transaction
573575
this.checkFee(feeAddress.to_string(), tx.feeAmount());
574576

575577
return await this.networkClient.submitTransaction(tx);
@@ -798,6 +800,7 @@ class ProgramManager {
798800
);
799801
}
800802

803+
// Check if the account has sufficient credits to pay for the transaction
801804
this.checkFee(feeAddress.to_string(), tx.feeAmount());
802805

803806
return await this.networkClient.submitTransaction(tx);
@@ -897,6 +900,7 @@ class ProgramManager {
897900
);
898901
}
899902

903+
// Check if the account has sufficient credits to pay for the transaction
900904
this.checkFee(feeAddress.to_string(), tx.feeAmount());
901905

902906
return await this.networkClient.submitTransaction(tx);
@@ -1270,6 +1274,7 @@ class ProgramManager {
12701274
);
12711275
}
12721276

1277+
// Check if the account has sufficient credits to pay for the transaction
12731278
this.checkFee(feeAddress.to_string(), tx.feeAmount());
12741279

12751280
return await this.networkClient.submitTransaction(tx);
@@ -1404,6 +1409,7 @@ class ProgramManager {
14041409
);
14051410
}
14061411

1412+
// Check if the account has sufficient credits to pay for the transaction
14071413
this.checkFee(feeAddress.to_string(), tx.feeAmount());
14081414

14091415
return await this.networkClient.submitTransaction(tx);
@@ -1547,6 +1553,7 @@ class ProgramManager {
15471553
);
15481554
}
15491555

1556+
// Check if the account has sufficient credits to pay for the transaction
15501557
this.checkFee(feeAddress.to_string(), tx.feeAmount());
15511558

15521559
return await this.networkClient.submitTransaction(tx);
@@ -1675,6 +1682,7 @@ class ProgramManager {
16751682
);
16761683
}
16771684

1685+
// Check if the account has sufficient credits to pay for the transaction
16781686
this.checkFee(feeAddress.to_string(), tx.feeAmount());
16791687

16801688
return await this.networkClient.submitTransaction(tx);
@@ -1739,6 +1747,7 @@ class ProgramManager {
17391747
...additionalOptions,
17401748
};
17411749

1750+
// Check if the account has sufficient credits to pay for the transaction
17421751
return await this.buildExecutionTransaction(executeOptions);
17431752
}
17441753

@@ -1794,6 +1803,7 @@ class ProgramManager {
17941803
);
17951804
}
17961805

1806+
// Check if the account has sufficient credits to pay for the transaction
17971807
this.checkFee(feeAddress.to_string(), tx.feeAmount());
17981808

17991809
return await this.networkClient.submitTransaction(tx);
@@ -1926,6 +1936,7 @@ class ProgramManager {
19261936
);
19271937
}
19281938

1939+
// Check if the account has sufficient credits to pay for the transaction
19291940
this.checkFee(feeAddress.to_string(), tx.feeAmount());
19301941

19311942
return this.networkClient.submitTransaction(tx);

0 commit comments

Comments
 (0)