@swype-org/react-sdk 0.1.24 → 0.1.25

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
@@ -1061,10 +1061,10 @@ async function executeSignPermit2(action, wagmiConfig2, apiBaseUrl, sessionId) {
1061
1061
  primaryType: parsed.primaryType,
1062
1062
  message: parsed.message
1063
1063
  });
1064
- const signature = normalizeSignature(rawSignature);
1064
+ const signature = ownerIsSCA ? rawSignature.startsWith("0x") ? rawSignature : `0x${rawSignature}` : normalizeSignature(rawSignature);
1065
1065
  if (ownerIsSCA) {
1066
1066
  console.info(
1067
- `[swype-sdk][sign-permit2] Owner is SCA \u2014 skipping client-side ecrecover verification. Server will validate via EIP-1271.`
1067
+ `[swype-sdk][sign-permit2] Owner is SCA \u2014 preserving raw signature (${rawSignature.length / 2 - 1}B). Server will validate via EIP-1271.`
1068
1068
  );
1069
1069
  } else {
1070
1070
  const recoverInput = {