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