@naculus/connect-appkit-core 0.2.6 → 0.2.8

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.cjs CHANGED
@@ -616,13 +616,8 @@ async function clearOneInAppNotification(channel, id) {
616
616
 
617
617
  // src/destination.ts
618
618
  var import_connect_core11 = require("@naculus/connect-core");
619
- var DEAD_ADDRESSES = /* @__PURE__ */ new Set([
620
- "0x0000000000000000000000000000000000000001",
621
- "0x000000000000000000000000000000000000dead"
622
- ]);
623
619
  function isBurnDestination(address) {
624
- const lower = address.toLowerCase();
625
- return DEAD_ADDRESSES.has(lower) || lower.includes("dead");
620
+ return (0, import_connect_core11.isBurnAddress)(address);
626
621
  }
627
622
  function validateDestination(address) {
628
623
  if (!address) return { isValid: false, level: "blocked", issue: "empty" };
@@ -947,6 +942,12 @@ function createDelegationPolicyFlow(deps) {
947
942
  "This flow creates signed off-chain policies only. EIP-7702 and AA-module policies require a configured on-chain execution adapter."
948
943
  );
949
944
  }
945
+ if (scope.allowedRecipients && scope.allowedRecipients.length > 0) {
946
+ throw new import_connect_core15.WalletError(
947
+ "method_not_allowed",
948
+ "Recipient-limited policies are not supported by this flow: its executions sign raw digests, which connect-core refuses while allowedRecipients is set."
949
+ );
950
+ }
950
951
  if (!deps.encryptionKeyConfigured) {
951
952
  throw new import_connect_core15.WalletError(
952
953
  "method_not_allowed",