@primuslabs/fund-js-sdk 0.1.24 → 0.1.25
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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
|
@@ -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");
|