@akta/sdk 1.3.3-canary → 1.3.4-canary

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.
@@ -3481,11 +3481,11 @@ async function prepareGroupWithCost(atc, algod, sendParams = {}, additionalAtcCo
3481
3481
  if (t.txn.type !== algosdk2.TransactionType.appl)
3482
3482
  return false;
3483
3483
  const accounts = ((_b3 = (_a3 = t.txn.applicationCall) == null ? void 0 : _a3.accounts) == null ? void 0 : _b3.length) ?? 0;
3484
- if (type === "account")
3485
- return accounts < MAX_APP_CALL_ACCOUNT_REFERENCES;
3486
3484
  const assets = ((_d3 = (_c3 = t.txn.applicationCall) == null ? void 0 : _c3.foreignAssets) == null ? void 0 : _d3.length) ?? 0;
3487
3485
  const apps = ((_f3 = (_e3 = t.txn.applicationCall) == null ? void 0 : _e3.foreignApps) == null ? void 0 : _f3.length) ?? 0;
3488
3486
  const boxes = ((_h2 = (_g2 = t.txn.applicationCall) == null ? void 0 : _g2.boxes) == null ? void 0 : _h2.length) ?? 0;
3487
+ if (type === "account")
3488
+ return accounts < MAX_APP_CALL_ACCOUNT_REFERENCES && accounts + assets + apps + boxes < MAX_APP_CALL_FOREIGN_REFERENCES;
3489
3489
  if (type === "assetHolding" || type === "appLocal") {
3490
3490
  return accounts + assets + apps + boxes < MAX_APP_CALL_FOREIGN_REFERENCES - 1 && accounts < MAX_APP_CALL_ACCOUNT_REFERENCES;
3491
3491
  }
@@ -24919,4 +24919,4 @@ export {
24919
24919
  getPluginAppId,
24920
24920
  WalletSDK
24921
24921
  };
24922
- //# sourceMappingURL=chunk-CPLKIS7T.mjs.map
24922
+ //# sourceMappingURL=chunk-44USE4O3.mjs.map