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