@pafi-dev/issuer 0.7.7 → 0.7.9

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
@@ -2755,12 +2755,18 @@ var IssuerApiAdapter = class {
2755
2755
  // ------------------------------ Delegate endpoints -----------------------
2756
2756
  async delegateStatus(authenticatedAddress, chainId) {
2757
2757
  const { batchExecutor } = (0, import_core14.getContractAddresses)(chainId);
2758
- const code = await this.cfg.provider.getCode({
2759
- address: authenticatedAddress
2760
- });
2758
+ const [code, nonce] = await Promise.all([
2759
+ this.cfg.provider.getCode({ address: authenticatedAddress }),
2760
+ this.cfg.provider.getTransactionCount({
2761
+ address: authenticatedAddress,
2762
+ blockTag: "pending"
2763
+ })
2764
+ ]);
2761
2765
  return {
2762
2766
  isDelegated: (0, import_core14.parseEip7702DelegatedAddress)(code) !== null,
2763
- batchExecutorAddress: batchExecutor
2767
+ batchExecutorAddress: batchExecutor,
2768
+ delegationNonce: nonce.toString(),
2769
+ chainId
2764
2770
  };
2765
2771
  }
2766
2772
  /**
@@ -3722,7 +3728,7 @@ var IssuerStateValidator = class _IssuerStateValidator {
3722
3728
  };
3723
3729
 
3724
3730
  // src/index.ts
3725
- var PAFI_ISSUER_SDK_VERSION = true ? "0.7.7" : "dev";
3731
+ var PAFI_ISSUER_SDK_VERSION = true ? "0.7.8" : "dev";
3726
3732
  // Annotate the CommonJS export names for ESM import in node:
3727
3733
  0 && (module.exports = {
3728
3734
  AdapterMisconfiguredError,