@solana/kit 6.5.0 → 6.5.1-canary-20260326131250

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.
@@ -8788,7 +8788,7 @@ ${lastLines.map((line) => ` > ${line}
8788
8788
  ...config.headers ? normalizeHeaders2(config.headers) : void 0,
8789
8789
  ...{
8790
8790
  // Keep these headers lowercase so they will override any user-supplied headers above.
8791
- "solana-client": `js/${"6.5.0"}`
8791
+ "solana-client": `js/${"6.5.1-canary-20260326131250"}`
8792
8792
  }
8793
8793
  }
8794
8794
  }),
@@ -9903,7 +9903,7 @@ ${lastLines.map((line) => ` > ${line}
9903
9903
  signers.forEach((signer) => {
9904
9904
  if (!deduplicated[signer.address]) {
9905
9905
  deduplicated[signer.address] = signer;
9906
- } else if (deduplicated[signer.address] !== signer) {
9906
+ } else if (!signersAreEquivalent(deduplicated[signer.address], signer)) {
9907
9907
  throw new SolanaError(SOLANA_ERROR__SIGNER__ADDRESS_CANNOT_HAVE_MULTIPLE_SIGNERS, {
9908
9908
  address: signer.address
9909
9909
  });
@@ -9911,6 +9911,21 @@ ${lastLines.map((line) => ` > ${line}
9911
9911
  });
9912
9912
  return Object.values(deduplicated);
9913
9913
  }
9914
+ function signersAreEquivalent(a, b) {
9915
+ if (a === b) return true;
9916
+ const aKeys = Object.getOwnPropertyNames(a);
9917
+ const bKeys = Object.getOwnPropertyNames(b);
9918
+ if (aKeys.length !== bKeys.length) return false;
9919
+ return aKeys.every((key) => {
9920
+ if (!(key in b)) return false;
9921
+ const aVal = a[key];
9922
+ const bVal = b[key];
9923
+ if (typeof aVal === "function" && typeof bVal === "function") {
9924
+ return aVal.toString() === bVal.toString();
9925
+ }
9926
+ return aVal === bVal;
9927
+ });
9928
+ }
9914
9929
  function isTransactionModifyingSigner(value) {
9915
9930
  return "modifyAndSignTransactions" in value && typeof value.modifyAndSignTransactions === "function";
9916
9931
  }