@paradex/sdk 0.4.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/dist/config.js +2 -1
  2. package/package.json +1 -1
package/dist/config.js CHANGED
@@ -1,3 +1,4 @@
1
+ import * as Starknet from 'starknet';
1
2
  /**
2
3
  * Fetches the Paradex config for the given environment.
3
4
  * This is required for account derivation.
@@ -36,7 +37,7 @@ export function buildConfig(rawConfig) {
36
37
  ]));
37
38
  return {
38
39
  starknetFullNodeRpcUrl: rawConfig.starknet_fullnode_rpc_url,
39
- starknetChainId: rawConfig.starknet_chain_id,
40
+ starknetChainId: Starknet.shortString.encodeShortString(rawConfig.starknet_chain_id),
40
41
  l1ChainId: rawConfig.l1_chain_id,
41
42
  paraclearAccountHash: rawConfig.paraclear_account_hash,
42
43
  paraclearAccountProxyHash: rawConfig.paraclear_account_proxy_hash,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paradex/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "JavaScript SDK for Paradex",
5
5
  "main": "dist/index.js",
6
6
  "files": [