@paradex/sdk 0.5.2 → 0.5.3

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.
@@ -148,13 +148,13 @@ export class AccountSupport {
148
148
  return r;
149
149
  }
150
150
  case 'argent-v0.4.0-starknet-signer': {
151
- if (segments.length === 2) {
151
+ if (segments.length === 2 || segments.length === 4) {
152
152
  const [r, _s] = segments;
153
153
  if (r == null)
154
154
  throw new Error('Argent signature is missing R segment');
155
155
  return r;
156
156
  }
157
- if (segments.length === 5) {
157
+ if (segments.length === 5 || segments.length === 9) {
158
158
  const [_numSignatures, _sigType, _pubKey, r, _s] = segments;
159
159
  if (r == null)
160
160
  throw new Error('Argent signature is missing R segment');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paradex/sdk",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "JavaScript SDK for Paradex",
5
5
  "main": "dist/index.js",
6
6
  "files": [