@primuslabs/fund-js-sdk 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -187,7 +187,7 @@ var formatErrFn = (error) => {
|
|
|
187
187
|
if (isNoPendingWithdrawals) {
|
|
188
188
|
formatError = "no pending withdrawals";
|
|
189
189
|
}
|
|
190
|
-
const insufficientBalanceErrStrArr = ["insufficient balance", "INSUFFICIENT_FUNDS", "The caller does not have enough funds for value transfer."];
|
|
190
|
+
const insufficientBalanceErrStrArr = ["insufficient balance", "INSUFFICIENT_FUNDS", "The caller does not have enough funds for value transfer.", "insufficient lamports", "Attempt to debit an account but found no record of a prior credit"];
|
|
191
191
|
const isInsufficientBalance = hasErrorFlagFn(curErrorStrArr, insufficientBalanceErrStrArr);
|
|
192
192
|
if (isInsufficientBalance) {
|
|
193
193
|
formatError = "insufficient balance";
|
|
@@ -261,7 +261,7 @@ var Contract = class {
|
|
|
261
261
|
if (isNoPendingWithdrawals) {
|
|
262
262
|
return reject("no pending withdrawals");
|
|
263
263
|
}
|
|
264
|
-
const insufficientBalanceErrStrArr = ["insufficient balance", "INSUFFICIENT_FUNDS", "The caller does not have enough funds for value transfer."];
|
|
264
|
+
const insufficientBalanceErrStrArr = ["insufficient balance", "INSUFFICIENT_FUNDS", "The caller does not have enough funds for value transfer.", "insufficient lamports", "Attempt to debit an account but found no record of a prior credit"];
|
|
265
265
|
const isInsufficientBalance = hasErrorFlagFn(curErrorStrArr, insufficientBalanceErrStrArr);
|
|
266
266
|
if (isInsufficientBalance) {
|
|
267
267
|
return reject("insufficient balance");
|
package/dist/index.mjs
CHANGED
|
@@ -153,7 +153,7 @@ var formatErrFn = (error) => {
|
|
|
153
153
|
if (isNoPendingWithdrawals) {
|
|
154
154
|
formatError = "no pending withdrawals";
|
|
155
155
|
}
|
|
156
|
-
const insufficientBalanceErrStrArr = ["insufficient balance", "INSUFFICIENT_FUNDS", "The caller does not have enough funds for value transfer."];
|
|
156
|
+
const insufficientBalanceErrStrArr = ["insufficient balance", "INSUFFICIENT_FUNDS", "The caller does not have enough funds for value transfer.", "insufficient lamports", "Attempt to debit an account but found no record of a prior credit"];
|
|
157
157
|
const isInsufficientBalance = hasErrorFlagFn(curErrorStrArr, insufficientBalanceErrStrArr);
|
|
158
158
|
if (isInsufficientBalance) {
|
|
159
159
|
formatError = "insufficient balance";
|
|
@@ -227,7 +227,7 @@ var Contract = class {
|
|
|
227
227
|
if (isNoPendingWithdrawals) {
|
|
228
228
|
return reject("no pending withdrawals");
|
|
229
229
|
}
|
|
230
|
-
const insufficientBalanceErrStrArr = ["insufficient balance", "INSUFFICIENT_FUNDS", "The caller does not have enough funds for value transfer."];
|
|
230
|
+
const insufficientBalanceErrStrArr = ["insufficient balance", "INSUFFICIENT_FUNDS", "The caller does not have enough funds for value transfer.", "insufficient lamports", "Attempt to debit an account but found no record of a prior credit"];
|
|
231
231
|
const isInsufficientBalance = hasErrorFlagFn(curErrorStrArr, insufficientBalanceErrStrArr);
|
|
232
232
|
if (isInsufficientBalance) {
|
|
233
233
|
return reject("insufficient balance");
|